This commit is contained in:
Alejandro Javier Asenjo Nitti 2024-09-17 18:39:04 -03:00
parent 8323be7c86
commit 599a90ae0d

View File

@ -3275,6 +3275,7 @@ void Zoness_801986FC(ZoSarumarine* this, s32 arg1, f32 xOff, f32 yOff, f32 zOff,
#ifdef AVOID_UB #ifdef AVOID_UB
if (i < ARRAY_COUNT(gActors)) { if (i < ARRAY_COUNT(gActors)) {
#else #else
// @Bug: checking out of bounds
if (i >= ARRAY_COUNT(gActors)) { if (i >= ARRAY_COUNT(gActors)) {
#endif #endif
actor245->obj.status = OBJ_FREE; actor245->obj.status = OBJ_FREE;