diff options
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 752d509ff5d..4f0bd135df3 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -15047,7 +15047,13 @@ void Player::_LoadInventory(QueryResult *result, uint32 timediff) // the item is in a bag, find the bag std::map<uint64, Bag*>::iterator itr = bagMap.find(bag_guid); 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 success = false; } |