Potential fix for a rare error when moving actions while on a vehicle

This commit is contained in:
Hendrik Leppkes
2009-02-19 15:44:09 +01:00
parent 6287e62748
commit fc31c9d48d
+1 -1
View File
@@ -262,7 +262,7 @@ function Button:RefreshAllStateActions()
end
function Button:RefreshStateAction(state)
local state = tonumber(state or self:GetAttribute("state") or 0)
local state = tonumber(state or self:GetAttribute("state")) or 0
local action = self.stateactions[state]
self:SetAttribute("action-"..state, action)