Update event_object_movement.c
This commit is contained in:
@@ -2341,7 +2341,7 @@ const u8 *GetObjectEventScriptPointerByObjectEventId(u8 objectEventId)
|
|||||||
static u16 GetObjectEventFlagIdByLocalIdAndMap(u8 localId, u8 mapNum, u8 mapGroup)
|
static u16 GetObjectEventFlagIdByLocalIdAndMap(u8 localId, u8 mapNum, u8 mapGroup)
|
||||||
{
|
{
|
||||||
struct ObjectEventTemplate *obj = GetObjectEventTemplateByLocalIdAndMap(localId, mapNum, 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.
|
// BUG: The function may return NULL, and attempting to read from NULL may freeze the game using modern compilers.
|
||||||
if (obj == NULL)
|
if (obj == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user