changeset 164:363dd8130205

minor tweak to facilitate picking up the bar when training Call of Elements
author Flick <flickerstreak@gmail.com>
date Sat, 22 Aug 2009 00:26:29 +0000
parents ab5c37989986
children 5257073138e8
files modules/Totem.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/Totem.lua	Sat Aug 22 00:12:44 2009 +0000
+++ b/modules/Totem.lua	Sat Aug 22 00:26:29 2009 +0000
@@ -89,7 +89,7 @@
       if btnCfg[i] == nil then
         btnCfg[i] = {}
       end
-      if btns[i] == nil then
+      if not btns[i] then
         local success, r = pcall(Button.New,Button,i,btnCfg,bar)
         if success then
           btns[i] = r