summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-13 13:06:31 +0100
committeraap <aap@papnet.eu>2021-01-13 13:06:31 +0100
commit083aa700e99c922a741fda947a9a1502fb1242cc (patch)
tree03fde467d560131a220bbe562af6c66c3b34835a /src/peds/Ped.cpp
parentrename m_vehEnterType -> m_vehDoor (diff)
downloadre3-083aa700e99c922a741fda947a9a1502fb1242cc.tar
re3-083aa700e99c922a741fda947a9a1502fb1242cc.tar.gz
re3-083aa700e99c922a741fda947a9a1502fb1242cc.tar.bz2
re3-083aa700e99c922a741fda947a9a1502fb1242cc.tar.lz
re3-083aa700e99c922a741fda947a9a1502fb1242cc.tar.xz
re3-083aa700e99c922a741fda947a9a1502fb1242cc.tar.zst
re3-083aa700e99c922a741fda947a9a1502fb1242cc.zip
Diffstat (limited to '')
-rw-r--r--src/peds/Ped.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index c520c4ee..0797d196 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -330,8 +330,7 @@ CPed::SetModelIndex(uint32 mi)
m_animGroup = (AssocGroupId) modelInfo->m_animGroup;
CAnimManager::AddAnimation(GetClump(), m_animGroup, ANIM_IDLE_STANCE);
- // This is a mistake by R*, velocity is CVector, whereas m_vecAnimMoveDelta is CVector2D.
- (*RPANIMBLENDCLUMPDATA(m_rwObject))->velocity = (CVector*) &m_vecAnimMoveDelta;
+ (*RPANIMBLENDCLUMPDATA(m_rwObject))->velocity2d = &m_vecAnimMoveDelta;
#ifdef PED_SKIN
if(modelInfo->GetHitColModel() == nil)