# HG changeset patch # User Zerotorescue # Date 1295945479 -3600 # Node ID 678fded0b898d746bb3cea6eec29528a47d5f2db # Parent 84e38318f569865e65dc1e7e7c2161eadcc7c1cd Now using ITEM_LOCK_CHANGED again when moving out of the guild bank. Fixed a bug when refilling from storage into an empty slot of your local profession bags. diff -r 84e38318f569 -r 678fded0b898 Modules/Mover.lua --- a/Modules/Mover.lua Tue Jan 25 08:47:47 2011 +0100 +++ b/Modules/Mover.lua Tue Jan 25 09:51:19 2011 +0100 @@ -35,7 +35,7 @@ IsLocked = function(sourceContainer, sourceSlot) return select(3, GetGuildBankItemInfo(sourceContainer, sourceSlot)); end, - Event = "BAG_UPDATE", + Event = "ITEM_LOCK_CHANGED", }, [addon.Locations.Mailbox] = { GetItemId = function(mailIndex, attachmentId) @@ -283,7 +283,13 @@ itemMove:AddLocation(firstAvailableSlot.container, firstAvailableSlot.slot, outgoingMove.num); targetContents[outgoingMove.itemId] = itemMove; - tremove(emptySlots, 1); -- no longer empty + -- Find the slot used and remove it from the empty slots table + for index, emptySlot in pairs(emptySlots) do + if emptySlot == firstAvailableSlot then + tremove(emptySlots, index); + break; + end + end outgoingMove.num = 0; -- nothing remaining - sanity check outgoingMove.itemId = nil; -- remove this record from the outgoingMoves-table