While to do_while

This commit is contained in:
PokeCodec
2020-09-05 18:15:53 -04:00
parent fe9ab67063
commit 8b729cf225
+2 -2
View File
@@ -5563,11 +5563,11 @@ static void HandleAction_UseItem(void)
} }
else else
{ {
while (!(*(gBattleStruct->AI_itemFlags + (gBattlerAttacker >> 1)) & 1)) do
{ {
*(gBattleStruct->AI_itemFlags + (gBattlerAttacker >> 1)) >>= 1; *(gBattleStruct->AI_itemFlags + (gBattlerAttacker >> 1)) >>= 1;
gBattleCommunication[MULTISTRING_CHOOSER]++; gBattleCommunication[MULTISTRING_CHOOSER]++;
} } while (!(*(gBattleStruct->AI_itemFlags + (gBattlerAttacker >> 1)) & 1));
} }
break; break;
case AI_ITEM_X_STAT: case AI_ITEM_X_STAT: