Fix alayan crash

This commit is contained in:
Benau 2018-09-24 08:38:25 +08:00
parent 2ac0e5fd07
commit 0c3691cf18

View File

@ -451,6 +451,8 @@ void NetworkingLobby::tearDown()
// ----------------------------------------------------------------------------
bool NetworkingLobby::onEscapePressed()
{
if (NetworkConfig::get()->isAddingNetworkPlayers())
NetworkConfig::get()->cleanNetworkPlayers();
m_joined_server.reset();
input_manager->getDeviceManager()->mapFireToSelect(false);
STKHost::get()->shutdown();