aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Bag.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Bag.cpp b/src/game/Bag.cpp
index 72d71c5e8bc..ec321826eae 100644
--- a/src/game/Bag.cpp
+++ b/src/game/Bag.cpp
@@ -157,11 +157,11 @@ void Bag::RemoveItem( uint8 slot, bool /*update*/ )
SetUInt64Value( CONTAINER_FIELD_SLOT_1 + (slot * 2), 0 );
}
-void Bag::StoreItem( uint8 slot, Item *pItem, bool /*update*/ )
+void Bag::StoreItem(uint8 slot, Item *pItem, bool /*update*/)
{
assert(slot < MAX_BAG_SIZE);
- if( pItem )
+ if (pItem && pItem->GetGUID() != this->GetGUID())
{
m_bagslot[slot] = pItem;
SetUInt64Value(CONTAINER_FIELD_SLOT_1 + (slot * 2), pItem->GetGUID());