From 79601dc17137dd2f2f83a82f6616591a76a8a790 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 26 Mar 2014 20:02:11 +1000 Subject: Get the value directly in isValid(). --- ClientHamr/GuiLua/skang.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ClientHamr') 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(). Thing.isValid = function (self) -- Check if this Thing is valid, return resulting error messages in errors. -- Anything that overrides this method, should call this super method first. - local value = self.module[self.names[1] ] + local value = self.value self.errors = {} if 'nil' == type(value) then if self.required then table.insert(self.errors, self.names[1] .. ' is required!') end -- cgit v1.1