Fix lobby crash in graphics server

This commit is contained in:
Benau 2018-04-06 22:10:51 +08:00
parent ba98e7dde9
commit 88728b074c

View File

@ -215,7 +215,8 @@ void NetworkingLobby::onUpdate(float delta)
}
else
{
if (m_server_peer.expired() && STKHost::existHost())
if (m_server_peer.expired() && NetworkConfig::get()->isClient()
&& STKHost::existHost())
m_server_peer = STKHost::get()->getServerPeerForClient();
core::stringw total_msg;
for (auto& string : m_server_info)