Skip to content

Commit

Permalink
[Minor] Fix a RE caused by DeployToFire (#1490)
Browse files Browse the repository at this point in the history
Fix the problem caused by the incorrect return address of the hook in
b37 repair.
Skipping repeated check. And avoiding RE caused by uninitialized
different data in EBX of different players.
  • Loading branch information
CrimRecya authored Jan 7, 2025
1 parent 995cfba commit 4071134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Misc/Hooks.BugFixes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ DEFINE_HOOK(0x4D580B, FootClass_ApproachTarget_DeployToFire, 0x6)

DEFINE_HOOK(0x741050, UnitClass_CanFire_DeployToFire, 0x6)
{
enum { SkipGameCode = 0x741086, MustDeploy = 0x7410A8 };
enum { SkipGameCode = 0x7410B7, MustDeploy = 0x7410A8 };

GET(UnitClass*, pThis, ESI);

Expand Down

0 comments on commit 4071134

Please sign in to comment.