From e4a39a5cdd1c5fbc3ccc9ca4c5f4ce1550cdfa49 Mon Sep 17 00:00:00 2001 From: JaceCear <11230293+JaceCear@users.noreply.github.com> Date: Tue, 14 Jan 2025 23:44:04 +0100 Subject: [PATCH] Fix crash when starting regular Staff Credits --- src/game/cutscenes/credits.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/cutscenes/credits.c b/src/game/cutscenes/credits.c index 2bb0f7d37..b32bba802 100644 --- a/src/game/cutscenes/credits.c +++ b/src/game/cutscenes/credits.c @@ -69,7 +69,11 @@ void CreateCreditsCutScene(u8 creditsVariant, u8 b, u8 c) t = TaskCreate(sub_808EBC4, sizeof(struct CreditsCutScene), 0x3100, 0, TaskDestroy_CreditsCutScene); - // BUG: assigning to null pointer +#ifdef BUG_FIX + // Prevent 'scene' from being nullpointer when accessed + scene = TASK_DATA(t); +#endif + scene->unk52 = 0; scene = TASK_DATA(t);