Skip to content

Commit

Permalink
fix: nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
FIr3baL committed Jun 29, 2024
1 parent 072fb83 commit 6e4371e
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 @@ -1546,7 +1546,7 @@ function Lobby:_OnSaidBattleEx(userName, message, sayTime)
else
local battleUsers = self.battles[battleID].users
for _, battleUserName in pairs(battleUsers) do
if self.userBattleStatus[battleUserName].isBoss then
if self.userBattleStatus[battleUserName] and self.userBattleStatus[battleUserName].isBoss then
self:_OnUpdateUserBattleStatus(battleUserName, {isBoss = false})
end
end
Expand Down

0 comments on commit 6e4371e

Please sign in to comment.