From 058399308ad5b4adcc54b4d8ac3b1a3b1092612b Mon Sep 17 00:00:00 2001 From: Arceveti <73617174+Arceveti@users.noreply.github.com> Date: Wed, 21 Sep 2022 17:10:41 -0700 Subject: [PATCH] Fix inverted null check in obj_get_model_id (#484) --- src/game/object_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/object_helpers.c b/src/game/object_helpers.c index 64d7cdf5..c2762f81 100644 --- a/src/game/object_helpers.c +++ b/src/game/object_helpers.c @@ -866,7 +866,7 @@ s32 cur_obj_has_model(ModelID16 modelID) { // HackerSM64 function ModelID32 obj_get_model_id(struct Object *obj) { - if (!obj->header.gfx.sharedChild) { + if (obj->header.gfx.sharedChild != NULL) { for (s32 i = MODEL_NONE; i < MODEL_ID_COUNT; i++) { if (obj->header.gfx.sharedChild == gLoadedGraphNodes[i]) { return i;