Fixed bug with followers and cross-map scripting events.
This commit is contained in:
parent
e4b9bb75e2
commit
3568c2a882
@ -2064,7 +2064,9 @@ void RemoveObjectEventsOutsideView(void)
|
||||
{
|
||||
struct ObjectEvent *objectEvent = &gObjectEvents[i];
|
||||
|
||||
if (objectEvent->active && !objectEvent->isPlayer)
|
||||
// Followers should not go OOB, or their sprites may be freed early during a cross-map scripting event,
|
||||
// such as Wally's Ralts catch sequence
|
||||
if (objectEvent->active && !objectEvent->isPlayer && objectEvent->localId != OBJ_EVENT_ID_FOLLOWER)
|
||||
RemoveObjectEventIfOutsideView(objectEvent);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user