From 12553beabd1a9d5f250dae512a55a768c8e7e6dc Mon Sep 17 00:00:00 2001 From: MegaMech Date: Wed, 8 May 2024 13:03:35 -0600 Subject: Current Changes (#14) * Couple minor fixes * test * OTR changes * More otr stuff * Some fixes --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com> --- src/update_objects.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/update_objects.c') diff --git a/src/update_objects.c b/src/update_objects.c index b889b485c..c05d44cab 100644 --- a/src/update_objects.c +++ b/src/update_objects.c @@ -102,16 +102,15 @@ s32 find_unused_obj_index(s32* arg0) { s32 temp_v1; temp_v1 = objectListSize; - temp_v0 = 0; do - { + temp_v0 = 0; + do { ++temp_v1; ++temp_v0; - if (temp_v1 == 0x226) { + if (temp_v1 == OBJECT_LIST_SIZE) { temp_v1 = 0; } - - } while ((gObjectList[temp_v1].unk_0CA != 0) && (temp_v0 != 0x226)); + } while ((gObjectList[temp_v1].unk_0CA != 0) && (temp_v0 != OBJECT_LIST_SIZE)); gObjectList[temp_v1].unk_0CA = 1; -- cgit v1.2.3