summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-07-01 07:28:57 -0400
committerGitHub <noreply@github.com>2021-07-01 07:28:57 -0400
commit3927917784f34408a511f1475f0aea07bc40d99c (patch)
tree0b4730c0a366c483d60702f75bd15404f5535d9e /src
parentb564c1e58c5f8bb26bef53f1eb6630d976f0ac9e (diff)
parentdd3d464b6a6d99df2f41a9ce886035c4f1eedca4 (diff)
Merge pull request #447 from Deokishisu/patch-2
Fix Magic Number in party_menu.c
Diffstat (limited to 'src')
-rw-r--r--src/party_menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/party_menu.c b/src/party_menu.c
index e08c427c8..aa7ffc702 100644
--- a/src/party_menu.c
+++ b/src/party_menu.c
@@ -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);
}