Skip to content

Commit d38b4ec

Browse files
committed
[ FIX ] Compiling in release mode caused crash on CAnimBlendAssoc_destructor
1 parent dae8c85 commit d38b4ec

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Client/multiplayer_sa/CMultiplayerSA_CustomAnimations.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void CMultiplayerSA::SetBlendAnimationHierarchyHandler ( BlendAnimationHierarchy
5353
m_pBlendAnimationHierarchyHandler = pHandler;
5454
}
5555

56-
void CAnimBlendAssoc_destructor ( CAnimBlendAssociationSAInterface * pThis )
56+
void __cdecl CAnimBlendAssoc_destructor ( CAnimBlendAssociationSAInterface * pThis )
5757
{
5858
if ( m_pCAnimBlendAssocDestructorHandler )
5959
{
@@ -65,9 +65,14 @@ void _declspec(naked) HOOK_CAnimBlendAssoc_destructor ()
6565
{
6666
_asm
6767
{
68-
push ecx // this
68+
push ecx
69+
70+
push ecx
6971
call CAnimBlendAssoc_destructor
72+
add esp, 0x4
73+
7074
pop ecx
75+
7176
push esi
7277
mov esi, ecx
7378
mov eax, [esi+10h]

0 commit comments

Comments
 (0)