Skip to content

Commit fee333b

Browse files
committed
Changed getReplacedAnimation return type to SReplacedAnimation *
1 parent f4258de commit fee333b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Client/mods/deathmatch/logic/CClientPed.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6236,13 +6236,13 @@ void CClientPed::RestoreAllAnimations ( void )
62366236
m_mapOfReplacedAnimations.clear ( );
62376237
}
62386238

6239-
CAnimBlendHierarchySAInterface * CClientPed::getReplacedAnimation ( CAnimBlendHierarchySAInterface * pInternalHierarchyInterface )
6239+
SReplacedAnimation * CClientPed::getReplacedAnimation ( CAnimBlendHierarchySAInterface * pInternalHierarchyInterface )
62406240
{
62416241
CClientPed::ReplacedAnim_type::iterator it;
62426242
it = m_mapOfReplacedAnimations.find ( pInternalHierarchyInterface );
62436243
if ( it != m_mapOfReplacedAnimations.end ( ) )
62446244
{
6245-
return it->second.pAnimationHierarchy;
6245+
return &it->second;
62466246
}
62476247
return nullptr;
62486248
}

Client/mods/deathmatch/logic/CClientPed.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ class CClientPed : public CClientStreamElement, public CAntiCheatModule
480480
void RestoreAnimations ( const CClientIFP & IFP );
481481
void RestoreAnimations ( CAnimBlock & animationBlock );
482482
void RestoreAllAnimations ( void );
483-
CAnimBlendHierarchySAInterface * getReplacedAnimation ( CAnimBlendHierarchySAInterface * pInternalHierarchyInterface );
483+
SReplacedAnimation * getReplacedAnimation ( CAnimBlendHierarchySAInterface * pInternalHierarchyInterface );
484484
protected:
485485
// This constructor is for peds managed by a player. These are unknown to the ped manager.
486486
CClientPed ( CClientManager* pManager, unsigned long ulModelID, ElementID ID, bool bIsLocalPlayer );

0 commit comments

Comments
 (0)