Was trying to hide upgradebuttons even if not yet created
Alar of Daggerspine [12-08-15 - 20:19]
Was trying to hide upgradebuttons even if not yet created
Signed-off-by: Alar of Daggerspine <alar@aspide.it>
diff --git a/FollowerPage.lua b/FollowerPage.lua
index f62466b..e4329e9 100644
--- a/FollowerPage.lua
+++ b/FollowerPage.lua
@@ -122,6 +122,7 @@ function module:ShowUpgradeButtons(force)
end
local gf=GMF.FollowerTab
if not self:GetBoolean("UPG") then
+ if not gf.upgradeButtons then return end
local b=gf.upgradeButtons
for i=1,#b do
b[i]:Hide()