Skip to content

Commit

Permalink
Merge pull request #475 from Winkarst-cpu/iter-fixes
Browse files Browse the repository at this point in the history
Fix another usage of Iter
  • Loading branch information
alexgrist authored Jan 14, 2025
2 parents e6c621c + 893ddf1 commit be57ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/logging.lua
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ if (SERVER) then
ix.log.Add(character:GetPlayer(), "inventoryRemove", character:GetName(), item:GetName(), item:GetID())

if (item.isBag) then
for _, v in item:GetInventory():Iter() do
ix.log.Add(character:GetPlayer(), "inventoryRemove", character:GetName(), v:GetName(), v:GetID())
for k, _ in item:GetInventory():Iter() do
ix.log.Add(character:GetPlayer(), "inventoryRemove", character:GetName(), k:GetName(), k:GetID())
end
end
end
Expand Down

0 comments on commit be57ae9

Please sign in to comment.