Merge pull request #447 from Deokishisu/patch-2
Fix Magic Number in party_menu.c
This commit is contained in:
+1
-1
@@ -839,7 +839,7 @@ static bool8 DisplayPartyPokemonDataForMoveTutorOrEvolutionItem(u8 slot)
|
||||
if (gPartyMenu.action == PARTY_ACTION_MOVE_TUTOR)
|
||||
{
|
||||
gSpecialVar_Result = FALSE;
|
||||
if (gSpecialVar_0x8005 > 14)
|
||||
if (gSpecialVar_0x8005 >= TUTOR_MOVE_COUNT)
|
||||
return FALSE;
|
||||
DisplayPartyPokemonDataToTeachMove(slot, 0, gSpecialVar_0x8005);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user