diff classes/Button.lua @ 236:dcdc0235d489

Really don't remove buttons if the current character doesn't support the spell
author Flick
date Thu, 24 Mar 2011 13:09:44 -0700
parents 1663c78a7f31
children
line wrap: on
line diff
--- a/classes/Button.lua	Thu Mar 24 12:58:27 2011 -0700
+++ b/classes/Button.lua	Thu Mar 24 13:09:44 2011 -0700
@@ -183,8 +183,9 @@
         hint = b:GetActionID()
       else
         n = i - 1
-        bar:ClipNButtons(n)
         if not success then
+          bar:ClipNButtons(n)
+          cfgN = n
           geterrorhandler()(r)
         end
       end