summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-10-11 16:26:00 -0400
committerGitHub <noreply@github.com>2020-10-11 16:26:00 -0400
commit7b8c935926eec33651e0e265fa49f2f99fce918a (patch)
tree265da0de37d821e57e5900599c0e8b8f7335d7f7
parentf9ce82fd749e85849329f4f88572fbc22c2d7d09 (diff)
parent0f21fc13ef0dd1721fb25876ee3647c5c67c568c (diff)
Merge pull request #365 from GriffinRichards/moves-const
Fix hang when releasing after adding new moves
-rw-r--r--src/pokemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pokemon.c b/src/pokemon.c
index 8f87db6ed..00c1bdc9c 100644
--- a/src/pokemon.c
+++ b/src/pokemon.c
@@ -3195,7 +3195,7 @@ u32 GetBoxMonData(struct BoxPokemon *boxMon, s32 field, u8 *data)
u16 *moves = (u16 *)data;
s32 i = 0;
- while (moves[i] != 355)
+ while (moves[i] != MOVES_COUNT)
{
u16 move = moves[i];
if (substruct1->moves[0] == move