summaryrefslogtreecommitdiff
path: root/src/peds
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
parent7c3e43aa2ed659a84a83a50a6d55d36b6ae614ba (diff)
anim velocity union
Diffstat (limited to 'src/peds')
-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)