diff --git a/plugins/logging.lua b/plugins/logging.lua index 043057fb..6132b542 100644 --- a/plugins/logging.lua +++ b/plugins/logging.lua @@ -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