summaryrefslogtreecommitdiff
path: root/src/mystery_event_script.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2019-06-23 22:00:47 -0400
committerGitHub <noreply@github.com>2019-06-23 22:00:47 -0400
commit5b7c34096cff301c4d74bb2e67a7164b66bcc5dd (patch)
tree6124fc5f2881ec5d698509101b407a36fdb934cd /src/mystery_event_script.c
parente0a5896de36da0bb83c3983df8b2f47d019a8896 (diff)
parent756f2c3a71c8f7e832a9e70a542210f549f4c61b (diff)
Merge pull request #74 from jiangzhengwenjz/misc
menu_helpers
Diffstat (limited to 'src/mystery_event_script.c')
-rw-r--r--src/mystery_event_script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mystery_event_script.c b/src/mystery_event_script.c
index c9dc6ae81..70566ca58 100644
--- a/src/mystery_event_script.c
+++ b/src/mystery_event_script.c
@@ -267,7 +267,7 @@ bool8 MEScrCmd_givepokemon(struct ScriptContext *ctx)
}
heldItem = GetMonData(&gPlayerParty[5], MON_DATA_HELD_ITEM);
- if (itemid_is_mail(heldItem))
+ if (ItemIsMail(heldItem))
GiveMailToMon2(&gPlayerParty[5], &mail);
CompactPartySlots();
CalculatePlayerPartyCount();