aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/skang.lua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-26 20:02:11 +1000
committerDavid Walter Seikel2014-03-26 20:02:11 +1000
commit79601dc17137dd2f2f83a82f6616591a76a8a790 (patch)
tree44d9d72169383025f7741d496fa4372e5ff7c64b /ClientHamr/GuiLua/skang.lua
parentTODO++, maybe. (diff)
downloadSledjHamr-79601dc17137dd2f2f83a82f6616591a76a8a790.zip
SledjHamr-79601dc17137dd2f2f83a82f6616591a76a8a790.tar.gz
SledjHamr-79601dc17137dd2f2f83a82f6616591a76a8a790.tar.bz2
SledjHamr-79601dc17137dd2f2f83a82f6616591a76a8a790.tar.xz
Get the value directly in isValid().
Diffstat (limited to 'ClientHamr/GuiLua/skang.lua')
-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