*Check bag slog in player load
--HG-- branch : trunk
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user