Fix error when hosting lobby game.
Revealed by 0406c4dfde
. The fix also avoids sending a redundant
lobbyregistration message.
Reported by: langbart
Differential Revision: https://code.wildfiregames.com/D3923
This was SVN commit r25369.
This commit is contained in:
parent
738b200dda
commit
2efe255bbd
@ -73,6 +73,10 @@ class LobbyGameRegistrationController
|
|||||||
if (!g_IsController || !Engine.HasXmppClient())
|
if (!g_IsController || !Engine.HasXmppClient())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Wait until a map has been selected.
|
||||||
|
if (!g_GameSettings.map.map)
|
||||||
|
return;
|
||||||
|
|
||||||
Engine.ProfileStart("sendRegisterGameStanza");
|
Engine.ProfileStart("sendRegisterGameStanza");
|
||||||
|
|
||||||
if (this.timer !== undefined)
|
if (this.timer !== undefined)
|
||||||
|
Loading…
Reference in New Issue
Block a user