Fixed crash in cutscene_bowser_arena_end()

This commit is contained in:
MysterD 2023-05-07 16:02:46 -07:00
parent ae76ad7c00
commit 34db74660c

View file

@ -8338,13 +8338,18 @@ BAD_RETURN(s32) cutscene_bowser_arena_dialog(struct Camera *c) {
* End the bowser arena cutscene.
*/
BAD_RETURN(s32) cutscene_bowser_arena_end(struct Camera *c) {
if (!c) { return; }
cutscene_stop_dialog(c);
c->cutscene = 0;
transition_next_state(c, 20);
sStatusFlags |= CAM_FLAG_UNUSED_CUTSCENE_ACTIVE;
if (sMarioCamState) {
sModeOffsetYaw = sMarioCamState->faceAngle[1] + DEGREES(90);
}
if (gSecondCameraFocus) {
gSecondCameraFocus->oBowserUnk88 = 2;
}
}
/**
* Cutscene that plays when Mario enters a bowser fight.