mirror of
https://github.com/sonicdcer/sf64.git
synced 2024-11-23 04:50:05 +00:00
AVOID_UB
This commit is contained in:
parent
8323be7c86
commit
599a90ae0d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user