From d072897354b1b2dd8619329dd965a87c2eaf52af Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Sun, 2 Aug 2020 15:37:04 +0200 Subject: [PATCH] Update event_object_movement.c --- src/event_object_movement.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event_object_movement.c b/src/event_object_movement.c index ab2f4749f..a076a2a22 100644 --- a/src/event_object_movement.c +++ b/src/event_object_movement.c @@ -2341,7 +2341,7 @@ const u8 *GetObjectEventScriptPointerByObjectEventId(u8 objectEventId) static u16 GetObjectEventFlagIdByLocalIdAndMap(u8 localId, u8 mapNum, u8 mapGroup) { struct ObjectEventTemplate *obj = GetObjectEventTemplateByLocalIdAndMap(localId, mapNum, mapGroup); -#if UBFIX +#ifdef UBFIX // BUG: The function may return NULL, and attempting to read from NULL may freeze the game using modern compilers. if (obj == NULL) return 0;