Skip to content

Commit

Permalink
playerlist: prevent use of a global var already in use elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruwetuin committed Jan 19, 2025
1 parent ffb6b55 commit 9bb196c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions luaui/Widgets/gui_advplayerslist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -677,12 +677,11 @@ end

local function UpdateRecentBroadcasters()
recentBroadcasters = {}

for playerID, info in pairs(lastBroadcasts) do
lastTime = info[1]
if totalTime - lastTime <= listTime or playerID == lockPlayerID then
if totalTime - lastTime <= listTime then
recentBroadcasters[playerID] = totalTime - lastTime
local prevTime = info[1]
if totalTime - prevTime <= listTime or playerID == lockPlayerID then
if totalTime - prevTime <= listTime then
recentBroadcasters[playerID] = totalTime - prevTime
end
end
end
Expand Down

0 comments on commit 9bb196c

Please sign in to comment.