Fix crash when trying to join games in lobby dialog

This fixes an oversight from d655455304. During a code deduplication, a
check was removed. When looking at the lobby as a dialog (while in
gamesetup), it should be impossible to try to join a game.

(cherry picked from commit 6ac5c376ea)
Signed-off-by: Itms <itms@wildfiregames.com>
This commit is contained in:
Itms
2025-01-27 10:15:45 +01:00
parent 5bd9a07731
commit 0651c11977
@@ -67,6 +67,9 @@ class JoinButton
return;
}
if (this.joinButton.hidden)
return;
Engine.PushGuiPage("page_gamesetup_mp.xml", {
"multiplayerGameType": "join",
"name": g_Nickname,