From 8b729cf22583dbebfeffab60538ce69b1fcb113e Mon Sep 17 00:00:00 2001 From: PokeCodec <67983839+PokeCodec@users.noreply.github.com> Date: Sat, 5 Sep 2020 18:15:53 -0400 Subject: [PATCH] While to do_while --- src/battle_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/battle_main.c b/src/battle_main.c index 5bd98d25b5..7fa59e6d4e 100644 --- a/src/battle_main.c +++ b/src/battle_main.c @@ -5563,11 +5563,11 @@ static void HandleAction_UseItem(void) } else { - while (!(*(gBattleStruct->AI_itemFlags + (gBattlerAttacker >> 1)) & 1)) + do { *(gBattleStruct->AI_itemFlags + (gBattlerAttacker >> 1)) >>= 1; gBattleCommunication[MULTISTRING_CHOOSER]++; - } + } while (!(*(gBattleStruct->AI_itemFlags + (gBattlerAttacker >> 1)) & 1)); } break; case AI_ITEM_X_STAT: