summaryrefslogtreecommitdiff
path: root/src/scrcmd.c
diff options
context:
space:
mode:
authorDiegoisawesome <Diegoisawesome@users.noreply.github.com>2018-12-24 16:50:14 -0600
committerGitHub <noreply@github.com>2018-12-24 16:50:14 -0600
commita54aa03d20dacc88879404b87a5f6a7eb7babc54 (patch)
tree6dc1cdc3d1d82b89c64c9350435035d0f3b5f45b /src/scrcmd.c
parentc2ca57e8ac02324c3c7d18063844b2a7fd7c217f (diff)
parent8833004d41cfdb4aefa7c61c0558458fd0302115 (diff)
Merge pull request #475 from DizzyEggg/learn
asm party and fldeff clean-up
Diffstat (limited to 'src/scrcmd.c')
-rw-r--r--src/scrcmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/scrcmd.c b/src/scrcmd.c
index 9d9c62a82..ab3af019d 100644
--- a/src/scrcmd.c
+++ b/src/scrcmd.c
@@ -1713,8 +1713,7 @@ bool8 ScrCmd_checkpartymove(struct ScriptContext *ctx)
u16 species = GetMonData(&gPlayerParty[i], MON_DATA_SPECIES, NULL);
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;