Fixed possible crash when using splitscreen with network multiplayer

This commit is contained in:
Deve 2018-11-21 22:12:02 +01:00
parent 3a3953f38c
commit 8771f0b9d7

View File

@ -467,6 +467,7 @@ bool NetworkingLobby::onEscapePressed()
NetworkConfig::get()->cleanNetworkPlayers();
m_joined_server.reset();
input_manager->getDeviceManager()->mapFireToSelect(false);
input_manager->getDeviceManager()->setAssignMode(NO_ASSIGN);
STKHost::get()->shutdown();
return true; // close the screen
} // onEscapePressed