mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 22:45:15 -04:00
Use correct item count in LocalPlayer::setEquipment() for new items
This commit is contained in:
parent
56928bdc4c
commit
c1bd4f1ce3
@ -784,7 +784,13 @@ void LocalPlayer::setEquipment()
|
||||
break;
|
||||
}
|
||||
if (it == ptrInventory.end()) // if not exists add item
|
||||
ptrInventory.equip(slot, ptrInventory.ContainerStore::add(EquipedItem(slot)->refid.c_str(), 1, ptrPlayer), ptrPlayer);
|
||||
ptrInventory.equip(
|
||||
slot,
|
||||
ptrInventory.ContainerStore::add(
|
||||
EquipedItem(slot)->refid.c_str(),
|
||||
EquipedItem(slot)->count,
|
||||
ptrPlayer),
|
||||
ptrPlayer);
|
||||
else
|
||||
ptrInventory.equip(slot, it, ptrPlayer);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user