Continue updating event macro comments
This commit is contained in:
@@ -150,7 +150,12 @@ void CreateScriptedWildMon(u16 species, u8 level, u16 item)
|
||||
|
||||
void ScriptSetMonMoveSlot(u8 monIndex, u16 move, u8 slot)
|
||||
{
|
||||
// Allows monIndex to go out of bounds of gPlayerParty. Doesn't occur in vanilla
|
||||
#ifdef BUGFIX
|
||||
if (monIndex >= PARTY_SIZE)
|
||||
#else
|
||||
if (monIndex > PARTY_SIZE)
|
||||
#endif
|
||||
monIndex = gPlayerPartyCount - 1;
|
||||
|
||||
SetMonMoveSlot(&gPlayerParty[monIndex], move, slot);
|
||||
|
||||
Reference in New Issue
Block a user