From 8005db504056bd32372248b8cb072c1b0d396fc7 Mon Sep 17 00:00:00 2001 From: Eduardo Quezada D'Ottone Date: Fri, 17 Dec 2021 06:47:35 -0300 Subject: [PATCH] Update src/battle_debug.c Co-authored-by: ultima-soul <33333039+ultima-soul@users.noreply.github.com> --- src/battle_debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/battle_debug.c b/src/battle_debug.c index c85b258899..28702776ff 100644 --- a/src/battle_debug.c +++ b/src/battle_debug.c @@ -1834,11 +1834,12 @@ static bool32 TryMoveDigit(struct BattleDebugModifyArrows *modArrows, bool32 mov if (charDigits[modArrows->currentDigit] == CHAR_0) { charDigits[modArrows->currentDigit] = CHAR_9; - for (i = modArrows->currentDigit - 1; i >= 0; i--) { if (charDigits[i] == CHAR_0) + { charDigits[i] = CHAR_9; + } else { charDigits[i]--;