From 399eb8cbacdb75fcd3b3737c1f3ee0db4c5c9ca3 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 27 Mar 2014 00:02:34 +1000 Subject: Small tweaks to skang.thing() types parsing. --- ClientHamr/GuiLua/skang.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua index 059f463..b8e418b 100644 --- a/ClientHamr/GuiLua/skang.lua +++ b/ClientHamr/GuiLua/skang.lua @@ -327,14 +327,12 @@ thing = function (names, help, default, types, widget, required, acl, boss) -- Find type, default to string, then break out the other types. local t = {type(default)} if 'nil' == t[1] then t[1] = 'string' end - i = 2 if types then + i = 2 for v in string.gmatch(types, '([^,]+)') do t[i] = v i = i + 1 end - else - types = '' end -- Set it all up. -- cgit v1.1