summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/yuzu/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index c2542c3ba..5560a30bd 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -3018,8 +3018,10 @@ void GMainWindow::OnRestartGame() {
3018 if (!system->IsPoweredOn()) { 3018 if (!system->IsPoweredOn()) {
3019 return; 3019 return;
3020 } 3020 }
3021 // Make a copy since BootGame edits game_path 3021 // Make a copy since ShutdownGame edits game_path
3022 BootGame(QString(current_game_path)); 3022 const auto current_game = QString(current_game_path);
3023 ShutdownGame();
3024 BootGame(current_game);
3023} 3025}
3024 3026
3025void GMainWindow::OnPauseGame() { 3027void GMainWindow::OnPauseGame() {