actsave: fixed bug when calculating act sg pointer
authorLukas Krickl <lukas@krickl.dev>
Fri, 22 Aug 2025 17:34:50 +0000 (19:34 +0200)
committerLukas Krickl <lukas@krickl.dev>
Fri, 22 Aug 2025 17:34:50 +0000 (19:34 +0200)
src/actsave.s

index 437f642171df08630fb1912c6f48894e0e331feb..e9a90f0933ece3c8365f3fab8720b9da4081f614 100644 (file)
@@ -24,7 +24,7 @@ act_sg_load_current_slot:
 @loop:
                add hl, de
                dec a
-       jr z, @loop REL
+       jr nz, @loop REL
 @done:
        push hl
        pop bc ; we want return value in bc