mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-21 18:58: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();
|
auto quantity = inst->GetCharges();
|
||||||
|
|
||||||
for (int i = EQ::invslot::GENERAL_BEGIN; i <= EQ::invslot::GENERAL_END; i++) {
|
for (int i = EQ::invslot::GENERAL_BEGIN; i <= EQ::invslot::GENERAL_END; i++) {
|
||||||
|
if (quantity == 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
auto inv_inst = GetInv().GetItem(i);
|
auto inv_inst = GetInv().GetItem(i);
|
||||||
if (!inv_inst) {
|
if (!inv_inst) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user