From e700c6731013750521d2f4a5382a1f4d3083838b Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Tue, 20 May 2025 18:10:37 +0200 Subject: [PATCH] unit: unit swapping now seems to work correctly Unit moves were not being reset correctly --- src/unit.s | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/unit.s b/src/unit.s index 73f9a85..3d6cdb2 100644 --- a/src/unit.s +++ b/src/unit.s @@ -530,9 +530,8 @@ unit_reset_all_moves: pop hl ld de, act_size add hl, de ; move to next act - dec b - jr z, @loop REL + jr nz, @loop REL ret -- 2.30.2