clean up party menu

This commit is contained in:
DizzyEggg
2018-12-24 23:27:20 +01:00
parent 43c88440e0
commit 44e5e82f67
3 changed files with 52 additions and 54 deletions

View File

@@ -1713,7 +1713,6 @@ 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) && MonKnowsMove(&gPlayerParty[i], moveId) == TRUE)
{
gSpecialVar_Result = i;