diff --git a/src/event_object_movement.c b/src/event_object_movement.c index 0179d43afd..32adfdcb90 100644 --- a/src/event_object_movement.c +++ b/src/event_object_movement.c @@ -1716,7 +1716,7 @@ void UpdateFollowingPokemon(void) { // Update following pokemon if any void RemoveFollowingPokemon(void) { // Remove follower object. Idempotent. struct ObjectEvent *objectEvent = GetFollowerObject(); - if (objectEvent == NULL)g + if (objectEvent == NULL) return; RemoveObjectEvent(objectEvent); }