summaryrefslogtreecommitdiff
path: root/src/scrcmd.c
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2018-12-24 21:59:05 +0100
committerDizzyEggg <jajkodizzy@wp.pl>2018-12-24 21:59:05 +0100
commit442b1826a276d9270092b7f3e43de1dd87150f4d (patch)
tree3f49b7b8deaccc46599ec17c9cc089d55877ca42 /src/scrcmd.c
parent980b055bf09215d89870730fa8cea2ac207e2260 (diff)
asm party and fldeff clean-up
Diffstat (limited to 'src/scrcmd.c')
-rw-r--r--src/scrcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scrcmd.c b/src/scrcmd.c
index 9d9c62a82..7995238aa 100644
--- a/src/scrcmd.c
+++ b/src/scrcmd.c
@@ -1714,7 +1714,7 @@ bool8 ScrCmd_checkpartymove(struct ScriptContext *ctx)
if (!species)
break;
// UB: GetMonData() arguments don't match function definition
- if (!GetMonData(&gPlayerParty[i], MON_DATA_IS_EGG) && pokemon_has_move(&gPlayerParty[i], moveId) == TRUE)
+ if (!GetMonData(&gPlayerParty[i], MON_DATA_IS_EGG) && MonKnowsMove(&gPlayerParty[i], moveId) == TRUE)
{
gSpecialVar_Result = i;
gSpecialVar_0x8004 = species;