summaryrefslogtreecommitdiff
path: root/src/update_objects.c
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2024-05-08 13:03:35 -0600
committerGitHub <noreply@github.com>2024-05-08 13:03:35 -0600
commit12553beabd1a9d5f250dae512a55a768c8e7e6dc (patch)
treef053325fa1c9d3af0f62ee0d3a8b6ce2c05efa78 /src/update_objects.c
parenta09909ac235939a9bc18f77f4b6b9aab24ed80d5 (diff)
Current Changes (#14)
* Couple minor fixes * test * OTR changes * More otr stuff * Some fixes --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/update_objects.c')
-rw-r--r--src/update_objects.c9
1 files changed, 4 insertions, 5 deletions
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;