Make sure no dialog exists when going back to lobby

This commit is contained in:
Benau 2018-04-20 14:18:05 +08:00
parent 0c33803159
commit 32c1255c10

View File

@ -428,6 +428,7 @@ void RaceResultGUI::backToLobby()
{
race_manager->exitRace();
race_manager->setAIKartOverride("");
GUIEngine::ModalDialog::dismiss();
StateManager::get()->resetAndSetStack(
NetworkConfig::get()->getResetScreens(true/*lobby*/).data());
} // backToLobby