diff options
| author | Christopher Leggett <chris@leggett.dev> | 2022-10-14 18:00:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-15 00:00:48 +0200 |
| commit | 1b6dd8a0fe418cfcf8e00c44fa6db59ee568726b (patch) | |
| tree | c33b290337c00daf40e165162fa9318a1e0a0fe3 | |
| parent | dd6a8b508493ab1392948cf3e21f051fd8ba05c3 (diff) | |
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.
| -rw-r--r-- | soh/src/overlays/actors/ovl_Obj_Lift/z_obj_lift.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
