Skip to content

Commit 27e8ced

Browse files
committed
Fix broken guard range hook
1 parent 1f4dee3 commit 27e8ced

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Ext/Techno/Hooks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1796,7 +1796,7 @@ DEFINE_HOOK(0x707E63, TechnoClass_GetGuardRange, 0x7)
17961796
{
17971797
enum { SkipGameCode = 0x707F4B };
17981798

1799-
GET(TechnoClass*, pThis, ESI);
1799+
GET(TechnoClass*, pThis, ECX);
18001800
GET_STACK(int, control, STACK_OFFSET(0xC, 0x4));
18011801

18021802
R->EAX(GetGuardRange(pThis, control));

0 commit comments

Comments
 (0)