forked from mirror/openmw-tes3mp
Use correct item count in LocalPlayer::setEquipment() for new items
This commit is contained in:
parent
56928bdc4c
commit
c1bd4f1ce3
1 changed files with 7 additions and 1 deletions
|
@ -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…
Reference in a new issue