diff --git a/leaderboard.lua b/leaderboard.lua index de4e104..4a9321e 100644 --- a/leaderboard.lua +++ b/leaderboard.lua @@ -1220,22 +1220,22 @@ local function think() end if clearcheats then clearcheats = false - for p in players.iterate do - p.SPBAKARTBIG = false - p.SPBAjustice = false - p.SPBAshutup = false + for q in players.iterate do + q.SPBAKARTBIG = false + q.SPBAjustice = false + q.SPBAshutup = false end end - for p in players.iterate do - if not p.spectator then - if p.SPBAKARTBIG then - Flags = $ | F_SPBBIG - end - if p.SPBAjustice then - Flags = $ | F_SPBJUS - end + + if p then + if p.SPBAKARTBIG then + Flags = $ | F_SPBBIG + end + if p.SPBAjustice then + Flags = $ | F_SPBJUS end end + end if not (Flags & F_SPBATK) then hud.enable("freeplay")