diff options
author | Kandera <KanderaDev@gmail.com> | 2012-07-06 10:23:27 -0400 |
---|---|---|
committer | Kandera <KanderaDev@gmail.com> | 2012-07-06 10:23:27 -0400 |
commit | 5395c4f6c6f86367715a059784183f57d88ca551 (patch) | |
tree | 524e0856af745c1f01941ec3140b6a1689fb2545 | |
parent | 2bcc29136ab2b4982fae765b360b16518ca67880 (diff) |
Core/Loot: fix master looting quest items with the custom flag.
-rwxr-xr-x | src/server/game/Handlers/LootHandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Handlers/LootHandler.cpp b/src/server/game/Handlers/LootHandler.cpp index 72e0b63f5b6..9601b449582 100755 --- a/src/server/game/Handlers/LootHandler.cpp +++ b/src/server/game/Handlers/LootHandler.cpp @@ -478,7 +478,7 @@ void WorldSession::HandleLootMasterGiveOpcode(WorldPacket & recv_data) return; } - LootItem& item = slotid > loot->items.size() ? loot->quest_items[slotid - loot->items.size()] : loot->items[slotid]; + LootItem& item = slotid >= loot->items.size() ? loot->quest_items[slotid - loot->items.size()] : loot->items[slotid]; ItemPosCountVec dest; InventoryResult msg = target->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, item.itemid, item.count); |