From 6ac5c376eab55e59b831605e1b2a01ec03f8dfa8 Mon Sep 17 00:00:00 2001 From: Itms Date: Mon, 27 Jan 2025 10:15:45 +0100 Subject: [PATCH] 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. --- .../data/mods/public/gui/lobby/LobbyPage/Buttons/JoinButton.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/binaries/data/mods/public/gui/lobby/LobbyPage/Buttons/JoinButton.js b/binaries/data/mods/public/gui/lobby/LobbyPage/Buttons/JoinButton.js index 07ad31cc5b..01bcacb8e9 100644 --- a/binaries/data/mods/public/gui/lobby/LobbyPage/Buttons/JoinButton.js +++ b/binaries/data/mods/public/gui/lobby/LobbyPage/Buttons/JoinButton.js @@ -67,6 +67,9 @@ class JoinButton return; } + if (this.joinButton.hidden) + return; + Engine.PushGuiPage("page_gamesetup_mp.xml", { "multiplayerGameType": "join", "name": g_Nickname,