diff options
author | megamage <none@none> | 2009-02-08 21:54:13 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-08 21:54:13 -0600 |
commit | 2bd90deeedb6282eab9dfce650fbaf2bda451ee8 (patch) | |
tree | 26a6af03fd6757b52002e56469a728f75a42abc8 /src/game/LootMgr.cpp | |
parent | 11b9bd42f76db238af914112bdc065fc8293451d (diff) |
[7239] Support multiply items loot and not normal loot items in Player::AutoStoreLoot. Author: VladimirMangos
Use this function in more cases and simplify and fix some related code.
--HG--
branch : trunk
Diffstat (limited to 'src/game/LootMgr.cpp')
-rw-r--r-- | src/game/LootMgr.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/LootMgr.cpp b/src/game/LootMgr.cpp index 3ef42b36f4a..af310b452fe 100644 --- a/src/game/LootMgr.cpp +++ b/src/game/LootMgr.cpp @@ -646,6 +646,12 @@ LootItem* Loot::LootItemInSlot(uint32 lootSlot, Player* player, QuestItem **qite return item; } +uint32 Loot::GetMaxSlotInLootFor(Player* player) const +{ + QuestItemMap::const_iterator itr = PlayerQuestItems.find(player->GetGUIDLow()); + return items.size() + (itr != PlayerQuestItems.end() ? itr->second->size() : 0); +} + ByteBuffer& operator<<(ByteBuffer& b, LootItem const& li) { b << uint32(li.itemid); |