Fix for bankslot purchase error

This commit is contained in:
Sandor Takacs
2014-02-13 11:34:24 +01:00
parent 8ccff635a0
commit 232f424a6f

View File

@ -406,19 +406,19 @@ function MyBank:OnEnable()
end end
MyBankFramePortrait:SetTexture("Interface\\Addons\\MyBags\\Skin\\MyBankPortrait") MyBankFramePortrait:SetTexture("Interface\\Addons\\MyBags\\Skin\\MyBankPortrait")
StaticPopupDialogs["PURCHASE_BANKBAG"] = { StaticPopupDialogs["PURCHASE_BANKBAG"] = {
preferredIndex = 3; preferredIndex = STATICPOPUPS_NUMDIALOGS,
text = TEXT(CONFIRM_BUY_BANK_SLOT), text = TEXT(CONFIRM_BUY_BANK_SLOT),
button1 = TEXT(YES), button1 = TEXT(YES),
button2 = TEXT(NO), button2 = TEXT(NO),
OnAccept = function() OnAccept = function(self)
if CT_oldPurchaseSlot then if CT_oldPurchaseSlot then
CT_oldPurchaseSlot() CT_oldPurchaseSlot()
else else
PurchaseSlot() PurchaseSlot()
end; end;
end, end,
OnShow = function() OnShow = function(self)
MoneyFrame_Update(this:GetName().."MoneyFrame", GetBankSlotCost()); MoneyFrame_Update(self:GetName() .. "MoneyFrame", GetBankSlotCost());
end, end,
showAlert = 1, showAlert = 1,
hasMoneyFrame = 1, hasMoneyFrame = 1,