diff --git a/gamemode/modules/base/sh_util.lua b/gamemode/modules/base/sh_util.lua index bfdb04c1a..24d087773 100644 --- a/gamemode/modules/base/sh_util.lua +++ b/gamemode/modules/base/sh_util.lua @@ -387,7 +387,7 @@ local function checkDatabase(ply) net.Send(ply) end - if SERVER and ply ~= game.GetWorld() and not ply:IsSuperAdmin() then + if SERVER and IsValid(ply) and ply ~= game.GetWorld() and not ply:IsSuperAdmin() then display("You must be superadmin") return end