mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-19 16:52:25 +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:
commit
24c15b16fe
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user