Fix the cleanup panel

This commit is contained in:
Garrett Brown 2019-10-26 13:50:43 -04:00
parent e88a2499d1
commit 310dda995c

View File

@ -186,8 +186,9 @@ function NADMOD.AdminPanel(Panel, runByNetReceive)
end end
for k, ply in pairs(player.GetAll()) do for k, ply in pairs(player.GetAll()) do
if IsValid(ply) then if IsValid(ply) then
Panel:Button( ply:Nick().." ("..(counts[ply:Nick()] or 0)..")", "nadmod_cleanupprops", ply:EntIndex() ) local steamid = ply:SteamID()
dccount = dccount - (counts[ply:Nick()] or 0) Panel:Button( ply:Nick().." ("..(counts[steamid] or 0)..")", "nadmod_cleanupprops", ply:EntIndex() )
dccount = dccount - (counts[steamid] or 0)
end end
end end