summaryrefslogtreecommitdiff
path: root/src/trade.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2019-08-30 23:06:43 -0400
committerhuderlem <huderlem@gmail.com>2019-08-30 22:13:14 -0500
commit5d30304f4e9ce26d4061cc3697439588126d6bdc (patch)
tree472495826ce50d849c83025a49c1e8a39939d64d /src/trade.c
parent45767f9c0034603e24f07c66485d7967c0f06eef (diff)
Use OTID constants for CreateMon
Diffstat (limited to 'src/trade.c')
-rw-r--r--src/trade.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trade.c b/src/trade.c
index 94accc43c..d95e4ebf5 100644
--- a/src/trade.c
+++ b/src/trade.c
@@ -1551,7 +1551,7 @@ static void sub_80773D0(void)
for (i = 0; i < PARTY_SIZE; i++)
{
- CreateMon(&gEnemyParty[i], SPECIES_NONE, 0, 0x20, FALSE, 0, 0, 0);
+ CreateMon(&gEnemyParty[i], SPECIES_NONE, 0, 0x20, FALSE, 0, OT_ID_PLAYER_ID, 0);
}
sub_807A19C(0);
@@ -5832,7 +5832,7 @@ static void _CreateInGameTradePokemon(u8 whichPlayerMon, u8 whichInGameTrade)
u8 isMail;
struct Pokemon *pokemon = &gEnemyParty[0];
- CreateMon(pokemon, inGameTrade->species, level, 32, TRUE, inGameTrade->personality, TRUE, inGameTrade->otId);
+ CreateMon(pokemon, inGameTrade->species, level, 32, TRUE, inGameTrade->personality, OT_ID_PRESET, inGameTrade->otId);
SetMonData(pokemon, MON_DATA_HP_IV, &inGameTrade->ivs[0]);
SetMonData(pokemon, MON_DATA_ATK_IV, &inGameTrade->ivs[1]);