Skip to content

Commit

Permalink
Fix another error recovery corner case.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mysticial committed Sep 25, 2023
1 parent 81ff69e commit 3b6f3b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,15 +343,15 @@ void ShinyHuntAreaZeroPlatform::run_state(SingleSwitchProgramEnvironment& env, B
throw ResetException();
}

m_reset_on_next_sandwich = true;

// If we're not at Zero Gate, go there now.
if (m_current_location != Location::ZERO_GATE_FLY_SPOT){
return_to_outside_zero_gate(info, console, context);
m_current_location = Location::ZERO_GATE_FLY_SPOT;
m_pending_platform_reset = false;
}

m_reset_on_next_sandwich = true;

// If we're not saved at Zero Gate, do it now.
if (m_saved_location != Location::ZERO_GATE_FLY_SPOT){
save_game_from_overworld(info, console, context);
Expand Down

0 comments on commit 3b6f3b3

Please sign in to comment.