Revert "Allow settings to be empty"

This reverts commit 24e3242d13.
This commit is contained in:
Timo Smit 2017-03-03 12:42:31 +01:00
parent 24e3242d13
commit ba24089a80

View file

@ -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