|
|
|
@ -402,8 +402,7 @@ void MWWorld::InventoryStore::autoEquip (const MWWorld::Ptr& actor)
|
|
|
|
|
std::pair<std::vector<int>, bool> itemsSlots =
|
|
|
|
|
weapon->getClass().getEquipmentSlots (*weapon);
|
|
|
|
|
|
|
|
|
|
for (std::vector<int>::const_iterator slot (itemsSlots.first.begin());
|
|
|
|
|
slot!=itemsSlots.first.end(); ++slot)
|
|
|
|
|
if (!itemsSlots.first.empty())
|
|
|
|
|
{
|
|
|
|
|
if (!itemsSlots.second)
|
|
|
|
|
{
|
|
|
|
@ -413,8 +412,8 @@ void MWWorld::InventoryStore::autoEquip (const MWWorld::Ptr& actor)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
slots_[*slot] = weapon;
|
|
|
|
|
break;
|
|
|
|
|
int slot = itemsSlots.first.front();
|
|
|
|
|
slots_[slot] = weapon;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|