Merge branch 'romhack' into lighting

This commit is contained in:
Ariel Antonitis 2021-06-12 00:37:06 -04:00
commit 87608392fc

View file

@ -2073,7 +2073,9 @@ void RemoveObjectEventsOutsideView(void)
{ {
struct ObjectEvent *objectEvent = &gObjectEvents[i]; 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); RemoveObjectEventIfOutsideView(objectEvent);
} }
} }