mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -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;
|
break;
|
||||||
}
|
}
|
||||||
if (it == ptrInventory.end()) // if not exists add item
|
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
|
else
|
||||||
ptrInventory.equip(slot, it, ptrPlayer);
|
ptrInventory.equip(slot, it, ptrPlayer);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user