Skip to content

Commit

Permalink
Fixed wotlk comp. issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurki committed Jan 20, 2023
1 parent 583d51a commit 0d5d112
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ProfessionMaster.toc
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions services/inventory-service.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d5d112

Please sign in to comment.