Skip to content

Commit

Permalink
Fix crash when you lose the game
Browse files Browse the repository at this point in the history
  • Loading branch information
ZivDero committed Sep 26, 2024
1 parent 911761c commit 5be9542
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/extensions/taction/tactionext_hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ DECLARE_PATCH(_TAction_Win_FlagLosersAsDefeatedInMultiplayer)
/**
* Stolen bytes / code.
*/
_asm { mov ecx, [PlayerPtr] }
_asm { mov ecx, PlayerPtr }
_asm { mov ecx, [ecx] }
JMP(0x00619FE1);
}

Expand Down Expand Up @@ -287,7 +288,8 @@ DECLARE_PATCH(_TAction_Lose_FlagLoserAsLostInMultiplayer)
/**
* Stolen bytes / code.
*/
_asm { mov ecx, [PlayerPtr] }
_asm { mov ecx, PlayerPtr }
_asm { mov ecx, [ecx] }
JMP(0x0061A00B);
}

Expand Down

0 comments on commit 5be9542

Please sign in to comment.