summaryrefslogtreecommitdiff
path: root/src/egg_hatch.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2019-09-17 00:10:23 -0400
committerGitHub <noreply@github.com>2019-09-17 00:10:23 -0400
commit945d3d3a27f6e5005e5481bb2ad36f1a2a220d3d (patch)
tree7dc8f5a21c6bb7640aad82de03a314b0e919f3b2 /src/egg_hatch.c
parentf4160ded9897f65e5ee7fa7050d195dfaa5bf5b2 (diff)
parent06af24bce58b9285166d27fc371ad3c3dbb63a29 (diff)
Merge branch 'master' into document-eventscripts
Diffstat (limited to 'src/egg_hatch.c')
-rw-r--r--src/egg_hatch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/egg_hatch.c b/src/egg_hatch.c
index 5e16f1479..4fba8578c 100644
--- a/src/egg_hatch.c
+++ b/src/egg_hatch.c
@@ -298,13 +298,13 @@ static void CreatedHatchedMon(struct Pokemon *egg, struct Pokemon *temp)
u16 species;
u32 personality, pokerus;
u8 i, friendship, language, gameMet, markings, obedience;
- u16 moves[4];
+ u16 moves[MAX_MON_MOVES];
u32 ivs[NUM_STATS];
species = GetMonData(egg, MON_DATA_SPECIES);
- for (i = 0; i < 4; i++)
+ for (i = 0; i < MAX_MON_MOVES; i++)
{
moves[i] = GetMonData(egg, MON_DATA_MOVE1 + i);
}
@@ -324,7 +324,7 @@ static void CreatedHatchedMon(struct Pokemon *egg, struct Pokemon *temp)
CreateMon(temp, species, EGG_HATCH_LEVEL, 32, TRUE, personality, OT_ID_PLAYER_ID, 0);
- for (i = 0; i < 4; i++)
+ for (i = 0; i < MAX_MON_MOVES; i++)
{
SetMonData(temp, MON_DATA_MOVE1 + i, &moves[i]);
}