From: Lukas Krickl Date: Sat, 23 Aug 2025 03:37:31 +0000 (+0200) Subject: action: fixed stack error when no unit is hit X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=1250ceca5a4ee2393ea0d0909f234e4959cd9cdc;p=gbrg%2F.git action: fixed stack error when no unit is hit --- 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