mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-21 20:01:18 +00:00
Fixed nil entity error
This commit is contained in:
parent
f39284074b
commit
5df8c2874f
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ function commands.log(clientId, command, cmdArguments)
|
|||
cmdClient = tonumber(cmdArguments[1])
|
||||
end
|
||||
|
||||
if cmdClient ~= -1 and et.gentity_get(cmdClient, "pers.netname") then
|
||||
if cmdClient ~= -1 and cmdClient ~= nil and et.gentity_get(cmdClient, "pers.netname") then
|
||||
victimId = cmdClient
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue