Correction

This commit is contained in:
Sonic Dreamcaster
2025-01-07 05:33:51 -03:00
parent 9276fc3b2f
commit 649de5f107
+5 -1
View File
@@ -1922,7 +1922,11 @@ void SectorZ_LoadLevelObjects(void) {
Object_SetInfo(&actor->info, actor->obj.id);
actor->itemDrop = DROP_SILVER_RING;
if (j++ >= 59) {
#ifdef AVOID_UB
if (j++ >= ARRAY_COUNT(gActors) - 1) {
#else
if (j++ >= ARRAY_COUNT(gActors)) {
#endif
break;
}
actor++;