# HG changeset patch # User Flick # Date 1239645269 0 # Node ID 8b35239339c59907fa597599c61353e99c1497ab # Parent 1f36187a94cf1bc648a63c9cc97abc191522cee3 fixed typo on destroy action button diff -r 1f36187a94cf -r 8b35239339c5 classes/ActionButton.lua --- a/classes/ActionButton.lua Fri Apr 10 23:22:10 2009 +0000 +++ b/classes/ActionButton.lua Mon Apr 13 17:54:29 2009 +0000 @@ -231,8 +231,8 @@ f:SetAttribute("_childupdate-vehicle",nil) f:SetAttribute("action",c.actionID) -- so that Destroy releases the right one - if c.pageactions and #c.pageActions > 1 then - for i = 2, #c.pageActions do + if c.pageactions and #c.pageactions > 1 then + for i = 2, #c.pageactions do self:ReleaseActionID(c.pageactions[i]) self:ReleaseActionID(id) end