From 0d5d112d8d06ede8f40fc89733ec27cdb06fa04c Mon Sep 17 00:00:00 2001 From: Stefan Schulze Date: Fri, 20 Jan 2023 16:33:06 +0100 Subject: [PATCH] Fixed wotlk comp. issue --- ProfessionMaster.toc | 4 ++-- services/inventory-service.lua | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ProfessionMaster.toc b/ProfessionMaster.toc index 704e682..5e0ac8e 100644 --- a/ProfessionMaster.toc +++ b/ProfessionMaster.toc @@ -1,9 +1,9 @@ ## Author: Esperanza - Everlook/EU-Alliance -## Interface: 30400 +## Interface: 30401 ## Title: Profession Master |cffDA8CFF[PM] ## Notes: See your professions, those of your guild and those of your friends. ## Notes-deDE: Siehe deine Berufe, die deiner Gilde und die deiner Freunde ein. -## Version: 1.6.1 +## Version: 1.6.2 ## SavedVariables: Professions, OwnProfessions, SyncTimes, Settings, Logs, CharacterSets, BucketList, Guildmates ## SavedVariablesPerCharacter: Frames, CharacterSettings diff --git a/services/inventory-service.lua b/services/inventory-service.lua index ab10513..0013c39 100644 --- a/services/inventory-service.lua +++ b/services/inventory-service.lua @@ -35,10 +35,10 @@ function InventoryService:ScanInventory() -- iterate all bags for bag = 0, NUM_BAG_SLOTS do -- iterate all slots in bag - for slot = 1, GetContainerNumSlots(bag) do + for slot = 1, C_Container.GetContainerNumSlots(bag) do -- get item id and amount - local itemId = GetContainerItemID(bag, slot); - local _, amount = GetContainerItemInfo(bag, slot); + local itemId = C_Container.GetContainerItemID(bag, slot); + local _, amount = C_Container.GetContainerItemInfo(bag, slot); -- check if id and amount loaded if (itemId and amount) then