File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1212#include " StdInc.h"
1313#include " ../game_sa/CAnimBlendAssocGroupSA.h"
1414
15+ constexpr CAnimBlendAssocGroupSAInterface * getAnimAssocGroupInterface ( AssocGroupId animGroup )
16+ {
17+ DWORD * pAnimAssocGroupsArray = reinterpret_cast < DWORD * > ( *(DWORD*)0xb4ea34 );
18+ return reinterpret_cast < CAnimBlendAssocGroupSAInterface * > ( pAnimAssocGroupsArray + 5 * animGroup );
19+ }
20+
1521// //////////////////////////////////////////////////////////////////////////////////////////////
1622// Check for anims that will crash and change to one that wont. (The new anim will be wrong and look crap though)
17- int _cdecl OnCAnimBlendAssocGroupCopyAnimation ( CAnimBlendAssocGroupSAInterface* pGroup , int iAnimId )
23+ int _cdecl OnCAnimBlendAssocGroupCopyAnimation ( AssocGroupId animGroup , int iAnimId )
1824{
25+ auto pGroup = getAnimAssocGroupInterface ( animGroup );
26+
1927 // Apply offset
2028 int iUseAnimId = iAnimId - pGroup->iIDOffset ;
2129
You can’t perform that action at this time.
0 commit comments