small fix for classes without stances
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user