Fix build & build warnings

This commit is contained in:
Arceveti committed 2021-09-11 10:58:54 -07:00
1 parent f34cb5dd3d
commit a1b2080b26
6 files changed
+8 -11

No files matched your search

+2
View File
@@ -387,8 +387,10 @@ s32 unload_deactivated_objects_in_list(struct ObjectNode *objList) {
obj = obj->next;
if ((gCurrentObject->activeFlags & ACTIVE_FLAG_ACTIVE) != ACTIVE_FLAG_ACTIVE) {
#ifdef PUPPYLIGHTS
if (gCurrentObject->oLightID != 0xFFFF)
obj_disable_light(gCurrentObject);
#endif
// Prevent object from respawning after exiting and re-entering the
// area
if (!(gCurrentObject->oFlags & OBJ_FLAG_PERSISTENT_RESPAWN)) {