diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index 8a5bf455c..eda559b8a 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -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); }