Update src/battle_debug.c

Co-authored-by: ultima-soul <33333039+ultima-soul@users.noreply.github.com>
This commit is contained in:
Eduardo Quezada D'Ottone 2021-12-17 06:47:35 -03:00 committed by GitHub
parent 3a12cdb8cb
commit 8005db5040
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]--;