small fix for classes without stances

This commit is contained in:
Hendrik Leppkes
2008-08-23 09:55:50 +00:00
parent 1b559df631
commit 6e0e7867bd
+1 -1
View File
@@ -224,7 +224,7 @@ function Button:RefreshAllStateActions()
end
function Button:RefreshStateAction(state)
local state = tonumber(state or self:GetAttribute("state"))
local state = tonumber(state or self:GetAttribute("state") or 0)
local action = self.stateactions[state]
self:SetAttribute("type--" .. state, "action")
self:SetAttribute("action--" .. state, action)