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-03 00:30:54 +0200
commit424a6d90bd154e0b657e394b6dfced585fed01bd (patch)
tree33e89f7669daba5a5cd87cbaa611b0d7c95e8a34 /src/peds/PedIK.cpp
parentSanitizer fixes (diff)
downloadre3-424a6d90bd154e0b657e394b6dfced585fed01bd.tar
re3-424a6d90bd154e0b657e394b6dfced585fed01bd.tar.gz
re3-424a6d90bd154e0b657e394b6dfced585fed01bd.tar.bz2
re3-424a6d90bd154e0b657e394b6dfced585fed01bd.tar.lz
re3-424a6d90bd154e0b657e394b6dfced585fed01bd.tar.xz
re3-424a6d90bd154e0b657e394b6dfced585fed01bd.tar.zst
re3-424a6d90bd154e0b657e394b6dfced585fed01bd.zip
Diffstat (limited to '')
-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 de2c23ce..8358a196 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;