Skip to content

Commit

Permalink
Merge pull request #2390 from fmatthew5876/bcrash
Browse files Browse the repository at this point in the history
Fix crash in Scene_GameBrowser
  • Loading branch information
Ghabry authored Oct 10, 2020
2 parents 61781f7 + 960c9c3 commit 76feca0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scene_gamebrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ void Scene_GameBrowser::Continue(SceneType /* prev_scene */) {
SetCurrentDirectory(L"..");
#endif

Main_Data::game_system->BgmStop();
Main_Data::SetProjectPath(browser_dir);

Cache::Clear();
Expand All @@ -62,8 +63,8 @@ void Scene_GameBrowser::Continue(SceneType /* prev_scene */) {
Player::game_title = "";
Player::engine = Player::EngineNone;

Main_Data::game_system = std::make_unique<Game_System>();
Main_Data::game_system->SetSystemGraphic(CACHE_DEFAULT_BITMAP, lcf::rpg::System::Stretch_stretch, lcf::rpg::System::Font_gothic);
Main_Data::game_system->BgmStop();

Player::debug_flag = initial_debug_flag;
}
Expand Down

0 comments on commit 76feca0

Please sign in to comment.