diff options
| author | Machiavelli <none@none> | 2010-03-21 16:50:04 +0100 |
|---|---|---|
| committer | Machiavelli <none@none> | 2010-03-21 16:50:04 +0100 |
| commit | 13024dee646509789cb855149896c3bc738f7218 (patch) | |
| tree | de901f3095fa33f84d929fd5ba3f9e73843410da /src/game/TradeHandler.cpp | |
| parent | 74a2957af5797c66dc40622e8eaf32f9d1e28daa (diff) | |
- More changes to the item handling system to prevent an item still being listed in a player's refundable storage
- Remove an assert in _SaveInventory(). Instead, I added an error log and manual removal. Please post these error logs should they occur
- In _LoadInventory, also check for player_guid when loading refund data
--HG--
branch : trunk
Diffstat (limited to 'src/game/TradeHandler.cpp')
| -rw-r--r-- | src/game/TradeHandler.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/game/TradeHandler.cpp b/src/game/TradeHandler.cpp index 23800b81aed..64c1d8e904c 100644 --- a/src/game/TradeHandler.cpp +++ b/src/game/TradeHandler.cpp @@ -371,14 +371,12 @@ void WorldSession::HandleAcceptTradeOpcode(WorldPacket& /*recvPacket*/) if (myItems[i]) { myItems[i]->SetUInt64Value( ITEM_FIELD_GIFTCREATOR, _player->GetGUID()); - myItems[i]->SetNotRefundable(_player, false); iPtr = _player->GetItemByGuid(_player->tradeItems[i]); _player->MoveItemFromInventory(iPtr->GetBagSlot(), iPtr->GetSlot(), true); } if (hisItems[i]) { hisItems[i]->SetUInt64Value( ITEM_FIELD_GIFTCREATOR,_player->pTrader->GetGUID()); - hisItems[i]->SetNotRefundable(_player->pTrader, false); iPtr = _player->pTrader->GetItemByGuid(_player->pTrader->tradeItems[i]); _player->pTrader->MoveItemFromInventory(iPtr->GetBagSlot(), iPtr->GetSlot(), true); } |
