Merge pull request #7747 from Elron103/pull-requests

Core/Mail: Fix merging of items taken from mail leading to invalid entries in item_instance
This commit is contained in:
Nay
2012-09-13 06:28:04 -07:00

View File

@@ -500,6 +500,7 @@ void WorldSession::HandleMailTakeItem(WorldPacket & recv_data)
player->RemoveMItem(it->GetGUIDLow());
uint32 count = it->GetCount(); // save counts before store and possible merge with deleting
it->SetState(ITEM_UNCHANGED); // need to set this state, otherwise item cannot be removed later, if neccessary
player->MoveItemToInventory(dest, it, true);
player->SaveInventoryAndGoldToDB(trans);