From 1b6dd8a0fe418cfcf8e00c44fa6db59ee568726b Mon Sep 17 00:00:00 2001 From: Christopher Leggett Date: Fri, 14 Oct 2022 18:00:48 -0400 Subject: [PATCH] Adds extra entry to obj_lift FallTimerDurations. (#1777) Prevents an OOB access that, as far as I know, was only causing issues on the Switch, but this addition is harmless everywhere else. --- soh/src/overlays/actors/ovl_Obj_Lift/z_obj_lift.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/src/overlays/actors/ovl_Obj_Lift/z_obj_lift.c b/soh/src/overlays/actors/ovl_Obj_Lift/z_obj_lift.c index eb13445af..0d43f4992 100644 --- a/soh/src/overlays/actors/ovl_Obj_Lift/z_obj_lift.c +++ b/soh/src/overlays/actors/ovl_Obj_Lift/z_obj_lift.c @@ -36,7 +36,7 @@ const ActorInit Obj_Lift_InitVars = { NULL, }; -static s16 sFallTimerDurations[] = { 0, 10, 20, 30, 40, 50, 60 }; +static s16 sFallTimerDurations[] = { 0, 10, 20, 30, 40, 50, 60, 0 }; typedef struct { /* 0x00 */ s16 x;