Safety check for an error that really shouldn't happen.

This commit is contained in:
Hendrik Leppkes
2009-02-21 19:16:06 +01:00
parent 13b2f0c4e1
commit 6758e5d9c3
+1
View File
@@ -83,6 +83,7 @@ function Bartender4.Button:Create(id, parent)
button:SetAttribute('_childupdate-state', [[
self:SetAttribute("state", message)
local action = self:GetAttribute("action-" .. message)
if not action then return end
if action == 132 then
self:SetAttribute("type", "click")
if not self:GetAttribute("isSpecial") then