Core/Item: This ought to fix the crashes introduced in r2969543fa5

--HG--
branch : trunk
This commit is contained in:
silinoron
2010-09-21 19:56:33 -07:00
parent b21490357b
commit 9ca1efa1e2
+1 -2
View File
@@ -11595,12 +11595,11 @@ Item* Player::_StoreItem(uint16 pos, Item *pItem, uint32 count, bool clone, bool
pItem->SetOwnerGUID(GetGUID()); // prevent error at next SetState in case trade/mail/buy from vendor pItem->SetOwnerGUID(GetGUID()); // prevent error at next SetState in case trade/mail/buy from vendor
pItem->SetNotRefundable(this); pItem->SetNotRefundable(this);
pItem->SetState(ITEM_REMOVED, this);
pItem->SetSoulboundTradeable(NULL, this, false); pItem->SetSoulboundTradeable(NULL, this, false);
RemoveTradeableItem(pItem->GetGUIDLow()); RemoveTradeableItem(pItem->GetGUIDLow());
pItem->SetState(ITEM_REMOVED, this);
} }
// AddItemDurations(pItem2); - pItem2 already have duration listed for player
AddEnchantmentDurations(pItem2); AddEnchantmentDurations(pItem2);
pItem2->SetState(ITEM_CHANGED, this); pItem2->SetState(ITEM_CHANGED, this);