From 30bd85a58ae9ad9210e1e0784528ad64b33492f2 Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Mon, 10 Jun 2019 11:32:23 +0200 Subject: [PATCH] Fix changed name --- src/item_use.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/item_use.c b/src/item_use.c index c0c286601..cf5ca5b22 100755 --- a/src/item_use.c +++ b/src/item_use.c @@ -922,19 +922,19 @@ void ItemUseInBattle_PokeBall(u8 taskId) if (IsBattlerAlive(GetBattlerAtPosition(B_POSITION_OPPONENT_LEFT)) && IsBattlerAlive(GetBattlerAtPosition(B_POSITION_OPPONENT_RIGHT))) // There are two present pokemon. { - u8 textCantThrowPokeBall[] = _("Cannot throw a ball!\nThere are two pokemon out there!\p"); + static const u8 textCantThrowPokeBall[] = _("Cannot throw a ball!\nThere are two pokemon out there!\p"); if (!InBattlePyramid()) - DisplayItemMessage(taskId, 1, textCantThrowPokeBall, bag_menu_inits_lists_menu); + DisplayItemMessage(taskId, 1, textCantThrowPokeBall, BagMenu_InitListsMenu); else DisplayItemMessageInBattlePyramid(taskId, textCantThrowPokeBall, sub_81C6714); } else if (gBattlerInMenuId == GetBattlerAtPosition(B_POSITION_PLAYER_RIGHT)) // Attempting to throw a ball with the second pokemon. { - u8 textCantThrowPokeBall[] = _("Cannot throw a ball!\p"); + static const u8 textCantThrowPokeBall[] = _("Cannot throw a ball!\p"); if (!InBattlePyramid()) - DisplayItemMessage(taskId, 1, textCantThrowPokeBall, bag_menu_inits_lists_menu); + DisplayItemMessage(taskId, 1, textCantThrowPokeBall, BagMenu_InitListsMenu); else DisplayItemMessageInBattlePyramid(taskId, textCantThrowPokeBall, sub_81C6714); }