Player
Player copied to clipboard
Upon reaching the language selection screen at the start, pressing one of the buttons causes the game to freeze.
Game: All game with multi-language support
Player platform: All
Describe the issue in detail and how to reproduce it:
Pressing the X key (not Z key) on the desktop version will also trigger this bug.
Thanks!
Solution is simple:
else if (Input::IsTriggered(Input::CANCEL)) {
Main_Data::game_system->SePlay(Main_Data::game_system->GetSystemSE(Main_Data::game_system->SFX_Cancel));
auto peek_scene = Scene::Peek();
if (!peek_scene || peek_scene->type == SceneType::Null || peek_scene->type == SceneType::Logo) {
Transition::instance().InitErase(Transition::TransitionFadeOut, this);
}
PopOrTitle(); // isntead of Scene::Pop();