summaryrefslogtreecommitdiff
path: root/src/mystery_event_script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mystery_event_script.c')
-rw-r--r--src/mystery_event_script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mystery_event_script.c b/src/mystery_event_script.c
index b959821d7..06c1c9bbf 100644
--- a/src/mystery_event_script.c
+++ b/src/mystery_event_script.c
@@ -233,7 +233,7 @@ bool8 MEScrCmd_setrecordmixinggift(struct ScriptContext *ctx)
bool8 MEScrCmd_givepokemon(struct ScriptContext *ctx)
{
- struct MailStruct mail;
+ struct Mail mail;
struct Pokemon pokemon;
u16 species;
u16 heldItem;
@@ -257,7 +257,7 @@ bool8 MEScrCmd_givepokemon(struct ScriptContext *ctx)
else
{
memcpy(&gPlayerParty[5], pokemonPtr, sizeof(struct Pokemon));
- memcpy(&mail, mailPtr, sizeof(struct MailStruct));
+ memcpy(&mail, mailPtr, sizeof(struct Mail));
if (species != SPECIES_EGG)
{