Skip to content

Commit 6234015

Browse files
committed
Fix stackoffset in recover item hook
1 parent 227afb3 commit 6234015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exec/misc.asm

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ recoverInvalidItem:
291291
global recoverInvalidItem2
292292
recoverInvalidItem2:
293293
resetStackoffset g1g2(0x110,0x110,0x158,0x15C)
294+
%assign var_numInvSlots -g1g2(0xB8,0xA8,0x100,0xEC)
294295
%assign var_loopIndex -g1g2(0xE8,0xD8,0x138,0x140)
295-
%assign var_numInvSlots -g1g2(0xB8,0xA8,0xEC,0x100)
296296
%assign var_used -g1g2(0x38,0x38,0x6C,0x70)
297297

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

0 commit comments

Comments
 (0)