diff options
author | David Walter Seikel | 2014-03-27 00:02:34 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-03-27 00:02:34 +1000 |
commit | 399eb8cbacdb75fcd3b3737c1f3ee0db4c5c9ca3 (patch) | |
tree | 80e0c641d675848c725ed3032efc9b5751ee7968 | |
parent | Add more default stuff to Thing. (diff) | |
download | SledjHamr-399eb8cbacdb75fcd3b3737c1f3ee0db4c5c9ca3.zip SledjHamr-399eb8cbacdb75fcd3b3737c1f3ee0db4c5c9ca3.tar.gz SledjHamr-399eb8cbacdb75fcd3b3737c1f3ee0db4c5c9ca3.tar.bz2 SledjHamr-399eb8cbacdb75fcd3b3737c1f3ee0db4c5c9ca3.tar.xz |
Small tweaks to skang.thing() types parsing.
-rw-r--r-- | ClientHamr/GuiLua/skang.lua | 4 |
1 files changed, 1 insertions, 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) | |||
327 | -- Find type, default to string, then break out the other types. | 327 | -- Find type, default to string, then break out the other types. |
328 | local t = {type(default)} | 328 | local t = {type(default)} |
329 | if 'nil' == t[1] then t[1] = 'string' end | 329 | if 'nil' == t[1] then t[1] = 'string' end |
330 | i = 2 | ||
331 | if types then | 330 | if types then |
331 | i = 2 | ||
332 | for v in string.gmatch(types, '([^,]+)') do | 332 | for v in string.gmatch(types, '([^,]+)') do |
333 | t[i] = v | 333 | t[i] = v |
334 | i = i + 1 | 334 | i = i + 1 |
335 | end | 335 | end |
336 | else | ||
337 | types = '' | ||
338 | end | 336 | end |
339 | 337 | ||
340 | -- Set it all up. | 338 | -- Set it all up. |