mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 23:28:21 +00:00
Merge pull request #82 from Valorith/copilot/sub-pr-80-again
Fix PutItemInInventoryWithStacking: scan full inventory before placing in empty slot
This commit is contained in:
@@ -4705,6 +4705,10 @@ bool Client::PutItemInInventoryWithStacking(EQ::ItemInstance *inst)
|
||||
auto quantity = inst->GetCharges();
|
||||
|
||||
for (int i = EQ::invslot::GENERAL_BEGIN; i <= EQ::invslot::GENERAL_END; i++) {
|
||||
if (quantity == 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
auto inv_inst = GetInv().GetItem(i);
|
||||
if (!inv_inst) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user