From 083aa700e99c922a741fda947a9a1502fb1242cc Mon Sep 17 00:00:00 2001 From: aap Date: Wed, 13 Jan 2021 13:06:31 +0100 Subject: anim velocity union --- src/peds/Ped.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/peds') 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) -- cgit v1.2.3