mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-04 02:06:50 +00:00
[Feature] Implement "Big Bags"
This commit is contained in:
+2
-2
@@ -845,7 +845,7 @@ LootItem *Corpse::GetItem(uint16 lootslot, LootItem **bag_item_data)
|
||||
|
||||
// convert above code to for loop
|
||||
for (const auto &item: m_item_list) {
|
||||
if (item->equip_slot >= bagstart && item->equip_slot < bagstart + 10) {
|
||||
if (item->equip_slot >= bagstart && item->equip_slot < bagstart + EQ::invbag::SLOT_COUNT) {
|
||||
bag_item_data[item->equip_slot - bagstart] = item;
|
||||
}
|
||||
}
|
||||
@@ -1472,7 +1472,7 @@ void Corpse::LootCorpseItem(Client *c, const EQApplicationPacket *app)
|
||||
|
||||
const EQ::ItemData *item = nullptr;
|
||||
EQ::ItemInstance *inst = nullptr;
|
||||
LootItem *item_data = nullptr, *bag_item_data[10] = {};
|
||||
LootItem *item_data = nullptr, *bag_item_data[EQ::invbag::SLOT_COUNT] = {};
|
||||
|
||||
memset(bag_item_data, 0, sizeof(bag_item_data));
|
||||
if (GetPlayerKillItem() > 1) {
|
||||
|
||||
Reference in New Issue
Block a user