Skip to content

Commit

Permalink
Fix server console database checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Seef0x authored and FPtje committed Dec 29, 2024
1 parent a20f804 commit cb4991d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamemode/modules/base/sh_util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb4991d

Please sign in to comment.