From fc31c9d48d8726e8425688b3343a2473fcbb7090 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Thu, 19 Feb 2009 15:44:09 +0100 Subject: [PATCH] Potential fix for a rare error when moving actions while on a vehicle --- ActionButton.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ActionButton.lua b/ActionButton.lua index 892916c..2a32c89 100644 --- a/ActionButton.lua +++ b/ActionButton.lua @@ -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)