Merge pull request #365 from GriffinRichards/moves-const

Fix hang when releasing after adding new moves
This commit is contained in:
GriffinR
2020-10-11 16:26:00 -04:00
committed by GitHub
+1 -1
View File
@@ -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