Skip to content

Commit

Permalink
fix(lobby): fix precedence error (#747)
Browse files Browse the repository at this point in the history
I'm not sure this is exactly what was intended, but does seem to fix the
error.

This was introduced in 10cc30b .
  • Loading branch information
salinecitrine authored Aug 6, 2024
1 parent 6ff2a4d commit ee6dc48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/liblobby/lobby/lobby.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee6dc48

Please sign in to comment.