You've already forked Microtransactions64
mirror of
https://github.com/Print-and-Panic/Microtransactions64.git
synced 2026-01-21 10:17:19 -08:00
Fix inverted null check in obj_get_model_id (#484)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user