diff options
| author | megamage <none@none> | 2009-06-06 22:25:15 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-06-06 22:25:15 -0500 |
| commit | 9b37ac896a3357a556019d458bbc9ccac428b82d (patch) | |
| tree | d0c79b91bc62129fe85e10f8be5507f200bb917c /src/game/Player.cpp | |
| parent | ebfb4c05586498e9a2796bd64b923a82bbeb7004 (diff) | |
*Fix a typo in 3806 that makes players item is mailed back.
*Also a missing part of last rev.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 8bbb27a61d9..eba21fa5f99 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -15057,10 +15057,14 @@ void Player::_LoadInventory(QueryResult *result, uint32 timediff) if(itr != bagMap.end()) { ItemPosCountVec dest; - if(CanStoreItem(itr->second->GetBagSlot(), slot, dest, item)) + uint8 result = CanStoreItem(itr->second->GetSlot(), slot, dest, item); + if(result == EQUIP_ERR_OK) itr->second->StoreItem(slot, item, true ); else + { + sLog.outError("Player::_LoadInventory: Player %s has item (GUID: %u Entry: %u) can't be loaded to inventory (Bag GUID: %u Slot: %u) by reason %u.", GetName(),item_guid, item_id, bag_guid, slot, result); success = false; + } } else success = false; |
