From abb2083058b58c67d4ba3f60f6608c4971b8f3d7 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Tue, 17 Jun 2025 04:40:02 +0200 Subject: [PATCH] ui: fixed moves max still being read from memory in ui update --- src/ui.s | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui.s b/src/ui.s index e475349..efda7bb 100644 --- a/src/ui.s +++ b/src/ui.s @@ -54,9 +54,11 @@ ui_draw: ; hl = actor ld de, act_moves add hl, de ; hl = current moves - ld a, [hl+] ; a = counter + ld a, [hl] ; a = counter ld d, a ; d = counter - ld a, [hl] ; a = moves max counter + + call stat_calc_moves_max + ; a = moves max counter sub a, d ; max - current ld e, a ; e = moves max counter -- 2.30.2