From 1250ceca5a4ee2393ea0d0909f234e4959cd9cdc Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sat, 23 Aug 2025 05:37:31 +0200 Subject: [PATCH] action: fixed stack error when no unit is hit --- src/action.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/action.s b/src/action.s index a753cb6..d121c6b 100644 --- a/src/action.s +++ b/src/action.s @@ -228,12 +228,12 @@ unit_action_attack_damage_calc: call unit_attack_get_attack_tile call unit_find_at + ldnull bc ld a, h or a, l - ldnull bc + pop de ret z ; no unit found - pop de push hl pop bc ; de = attacker -- 2.30.2