Skip to content

Commit

Permalink
Fix crash when starting regular Staff Credits
Browse files Browse the repository at this point in the history
  • Loading branch information
JaceCear committed Jan 14, 2025
1 parent 3b25e28 commit e4a39a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/game/cutscenes/credits.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e4a39a5

Please sign in to comment.