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 12
12
#include " StdInc.h"
13
13
#include " ../game_sa/CAnimBlendAssocGroupSA.h"
14
14
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
+
15
21
// //////////////////////////////////////////////////////////////////////////////////////////////
16
22
// 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 )
18
24
{
25
+ auto pGroup = getAnimAssocGroupInterface ( animGroup );
26
+
19
27
// Apply offset
20
28
int iUseAnimId = iAnimId - pGroup->iIDOffset ;
21
29
You can’t perform that action at this time.
0 commit comments