Re add crash fix for exiting to main menu

This commit is contained in:
Agent X 2024-06-13 17:27:53 -04:00
parent a8fdc53b8d
commit ab9e4bf6c7
1 changed files with 3 additions and 1 deletions

View File

@ -1652,7 +1652,9 @@ void update_menu_level(void) {
gLakituState.skipCameraInterpolationTimestamp = gGlobalTimer;
extern s32 gCamSkipInterp;
gCamSkipInterp = 1;
if (gCurrentArea != NULL) {
vec3f_copy(gCurrentArea->camera->pos, gLakituState.curPos);
}
vec3f_copy(gLakituState.pos, gLakituState.curPos);
vec3f_copy(gLakituState.goalPos, gLakituState.curPos);