*Check bag slog in player load

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-06 14:28:42 -05:00
parent 8228e38082
commit eb9d89e5ce
+6
View File
@@ -15047,10 +15047,16 @@ void Player::_LoadInventory(QueryResult *result, uint32 timediff)
// the item is in a bag, find the bag // the item is in a bag, find the bag
std::map<uint64, Bag*>::iterator itr = bagMap.find(bag_guid); std::map<uint64, Bag*>::iterator itr = bagMap.find(bag_guid);
if(itr != bagMap.end()) if(itr != bagMap.end())
{
ItemPosCountVec dest;
if(CanStoreItem(itr->second->GetBagSlot(), slot, dest, item))
itr->second->StoreItem(slot, item, true ); itr->second->StoreItem(slot, item, true );
else else
success = false; success = false;
} }
else
success = false;
}
// item's state may have changed after stored // item's state may have changed after stored
if (success) if (success)