summaryrefslogtreecommitdiffstats
path: root/src/peds/PedIK.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-07-02 22:56:31 +0200
committererorcun <erorcunerorcun@hotmail.com.tr>2021-07-02 22:56:54 +0200
commit4eea98c66b86f444eb07e730ce7a3118dfd092c1 (patch)
tree537bc4052e11c1dc9f590d745430226d5bcceb71 /src/peds/PedIK.cpp
parentFix use of integer in RemoveBuildingsNotInArea call (diff)
downloadre3-4eea98c66b86f444eb07e730ce7a3118dfd092c1.tar
re3-4eea98c66b86f444eb07e730ce7a3118dfd092c1.tar.gz
re3-4eea98c66b86f444eb07e730ce7a3118dfd092c1.tar.bz2
re3-4eea98c66b86f444eb07e730ce7a3118dfd092c1.tar.lz
re3-4eea98c66b86f444eb07e730ce7a3118dfd092c1.tar.xz
re3-4eea98c66b86f444eb07e730ce7a3118dfd092c1.tar.zst
re3-4eea98c66b86f444eb07e730ce7a3118dfd092c1.zip
Diffstat (limited to 'src/peds/PedIK.cpp')
-rw-r--r--src/peds/PedIK.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/PedIK.cpp b/src/peds/PedIK.cpp
index 6730d731..cf2e4ed5 100644
--- a/src/peds/PedIK.cpp
+++ b/src/peds/PedIK.cpp
@@ -17,9 +17,9 @@ const RwV3d XaxisIK = { 1.0f, 0.0f, 0.0f};
const RwV3d YaxisIK = { 0.0f, 1.0f, 0.0f};
const RwV3d ZaxisIK = { 0.0f, 0.0f, 1.0f};
-CPedIK::CPedIK(CPed *ped)
+CPedIK::CPedIK(CPed *ped) : m_ped(ped)
{
- m_ped = ped;
+ assert(ped != nil);
m_flags = 0;
m_headOrient.yaw = 0.0f;
m_headOrient.pitch = 0.0f;