From ee6dc48f7c9f2db8a887d72c6b9cf0afd0f592b5 Mon Sep 17 00:00:00 2001 From: Citrine Date: Tue, 6 Aug 2024 09:56:07 -0700 Subject: [PATCH] fix(lobby): fix precedence error (#747) I'm not sure this is exactly what was intended, but does seem to fix the error. This was introduced in 10cc30b58d6b262cea74e3a97c30bca9a5187daa . --- libs/liblobby/lobby/lobby.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/liblobby/lobby/lobby.lua b/libs/liblobby/lobby/lobby.lua index 345d07418..1c86db5ec 100644 --- a/libs/liblobby/lobby/lobby.lua +++ b/libs/liblobby/lobby/lobby.lua @@ -1440,7 +1440,7 @@ function Lobby:_OnUpdateUserBattleStatus(userName, status) return end - if userInfo and not userInfo.battleID or userInfo.battleID ~= self:GetMyBattleID() then + if userInfo and (not userInfo.battleID or userInfo.battleID ~= self:GetMyBattleID()) then Spring.Log(LOG_SECTION, LOG.WARNING, "Can't update user's battle status, user is not in our battle: ", userName) return end