mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-24 21:21:56 +00:00
parent
24e3242d13
commit
ba24089a80
1 changed files with 2 additions and 2 deletions
|
@ -67,9 +67,9 @@ function settings.load()
|
|||
local cvar = et.trap_Cvar_Get(setting)
|
||||
|
||||
if type(default) == "string" then
|
||||
data[setting] = (cvar ~= nil and tostring(cvar) or default)
|
||||
data[setting] = (cvar ~= "" and tostring(cvar) or default)
|
||||
elseif type(default) == "number" then
|
||||
data[setting] = (cvar ~= nil and tonumber(cvar) or default)
|
||||
data[setting] = (cvar ~= "" and tonumber(cvar) or default)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue