Skip to content

Commit

Permalink
Fix stackoffset in recover item hook
Browse files Browse the repository at this point in the history
  • Loading branch information
szapp committed Sep 6, 2024
1 parent 227afb3 commit 6234015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exec/misc.asm
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ recoverInvalidItem:
global recoverInvalidItem2
recoverInvalidItem2:
resetStackoffset g1g2(0x110,0x110,0x158,0x15C)
%assign var_numInvSlots -g1g2(0xB8,0xA8,0x100,0xEC)
%assign var_loopIndex -g1g2(0xE8,0xD8,0x138,0x140)
%assign var_numInvSlots -g1g2(0xB8,0xA8,0xEC,0x100)
%assign var_used -g1g2(0x38,0x38,0x6C,0x70)

mov eax, [esp+stackoffset+var_loopIndex] ; Check if first iteration (i.e. index == 0)
Expand Down

0 comments on commit 6234015

Please sign in to comment.