From 6352b997d154dbca947cfe8b3f8f45ab39714e1d Mon Sep 17 00:00:00 2001 From: Sandor Takacs Date: Tue, 6 Sep 2016 17:35:07 +0200 Subject: [PATCH] Fix some more locals --- MyBagsCore/MyBags.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MyBagsCore/MyBags.lua b/MyBagsCore/MyBags.lua index 82e6132..02969e4 100644 --- a/MyBagsCore/MyBags.lua +++ b/MyBagsCore/MyBags.lua @@ -819,7 +819,8 @@ function MyBagsCore:ItemButton_OnEnter(widget) if widget:GetParent() == MyBankFrameBank then GameTooltip:SetInventoryItem("player", BankButtonIDToInvSlotID(widget:GetID())) else - local hasCooldown, repairCost, speciesID, level, breedQuality, maxHealth, power, speed, name = GameTooltip:SetBagItem(widget:GetParent():GetID(), widget:GetID()) + local speciesID = select(3, GameTooltip:SetBagItem(widget:GetParent():GetID(), widget:GetID())) + -- local hasCooldown, repairCost, speciesID, level, breedQuality, maxHealth, power, speed, name = GameTooltip:SetBagItem(widget:GetParent():GetID(), widget:GetID()) if (speciesID and speciesID > 0) then local link = GetContainerItemLink(widget:GetParent():GetID(), widget:GetID()) local id, lvl, rar, hp, pw, sp, n = GetBattlePetInfoFromLink(link) @@ -1323,7 +1324,7 @@ function MyBagsCore:LayoutBagFrame(bagFrame) bagFrame.size = tonum(count) if bagButton and bagFrame:GetID() ~= BANK_CONTAINER then if not texture then - local bag_id, texture = GetInventorySlotInfo("Bag0Slot") + texture = select(2, GetInventorySlotInfo("Bag0Slot")) end if not self.isLive or (self.isLive and self:IsBagSlotUsable(bagFrame:GetID())) then