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 65abfa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/extensions/taction/tactionext_hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ DECLARE_PATCH(_TAction_Win_FlagLosersAsDefeatedInMultiplayer)
* Stolen bytes / code.
*/
_asm { mov ecx, [PlayerPtr] }
_asm { mov ecx, [ecx] }
JMP(0x00619FE1);
}

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

Expand Down

0 comments on commit 65abfa3

Please sign in to comment.