From c2e1c564134d209364d65b37275d846a9c832ab2 Mon Sep 17 00:00:00 2001 From: Archez Date: Wed, 29 May 2024 12:01:52 -0400 Subject: [PATCH] Fix crash with Deku King during credits (#601) --- mm/src/overlays/actors/ovl_En_Dnq/z_en_dnq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/src/overlays/actors/ovl_En_Dnq/z_en_dnq.c b/mm/src/overlays/actors/ovl_En_Dnq/z_en_dnq.c index eb5b47181e..fc24454ec6 100644 --- a/mm/src/overlays/actors/ovl_En_Dnq/z_en_dnq.c +++ b/mm/src/overlays/actors/ovl_En_Dnq/z_en_dnq.c @@ -457,10 +457,12 @@ void func_80A52FB8(EnDnq* this, PlayState* play) { } void EnDnq_HandleCutscene(EnDnq* this, PlayState* play) { + //! @bug The credits cutscene accesses this array OOB with a cueId of 6, which ends up giving 0 static s32 sCsAnimIndex[] = { DEKU_KING_ANIM_IDLE, DEKU_KING_ANIM_IDLE_MORPH, DEKU_KING_ANIM_SURPRISE, DEKU_KING_ANIM_JUMPED_ON_START, DEKU_KING_ANIM_JUMPED_ON_END, DEKU_KING_ANIM_JUMPED_ON_END_MORPH, + DEKU_KING_ANIM_IDLE, // 2S2H [Port] Added to prevent a crash with garbage data for cueId 6 }; s32 cueChannel; u32 cueId;