aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr
diff options
context:
space:
mode:
Diffstat (limited to 'ClientHamr')
-rw-r--r--ClientHamr/GuiLua/skang.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua
index 4d25dff..d02be48 100644
--- a/ClientHamr/GuiLua/skang.lua
+++ b/ClientHamr/GuiLua/skang.lua
@@ -229,7 +229,7 @@ Thing.errors = {} -- A list of errors returned by isValid().
229 229
230Thing.isValid = function (self) -- Check if this Thing is valid, return resulting error messages in errors. 230Thing.isValid = function (self) -- Check if this Thing is valid, return resulting error messages in errors.
231 -- Anything that overrides this method, should call this super method first. 231 -- Anything that overrides this method, should call this super method first.
232 local value = self.module[self.names[1] ] 232 local value = self.value
233 self.errors = {} 233 self.errors = {}
234 if 'nil' == type(value) then 234 if 'nil' == type(value) then
235 if self.required then table.insert(self.errors, self.names[1] .. ' is required!') end 235 if self.required then table.insert(self.errors, self.names[1] .. ' is required!') end