*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
+7 -1
View File
@@ -15047,7 +15047,13 @@ 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())
itr->second->StoreItem(slot, item, true ); {
ItemPosCountVec dest;
if(CanStoreItem(itr->second->GetBagSlot(), slot, dest, item))
itr->second->StoreItem(slot, item, true );
else
success = false;
}
else else
success = false; success = false;
} }