Skip to content

Commit

Permalink
Merge pull request EasyRPG#1436 from fmatthew5876/load_pop
Browse files Browse the repository at this point in the history
Pop all scenes when loading game
  • Loading branch information
carstene1ns authored Oct 11, 2018
2 parents 50fc262 + 0799852 commit 2474c70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scene_load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ void Scene_Load::Action(int index) {
Player::LoadSavegame(save_name);
Game_Temp::restart_title_cache = true;

Scene::Push(std::make_shared<Scene_Map>(true), true);
Scene::PopUntil(Scene::Title);
Scene::Push(std::make_shared<Scene_Map>(true));
}

bool Scene_Load::IsSlotValid(int index) {
Expand Down

0 comments on commit 2474c70

Please sign in to comment.