Don't pass obsolete slot parameter to cast

macos_ci_fix
Evil Eye 1 year ago
parent 773d78192c
commit 8f10c8f84a

@ -3062,17 +3062,7 @@ namespace MWWorld
if (inv.getSelectedEnchantItem() != inv.end())
{
const auto& itemPtr = *inv.getSelectedEnchantItem();
auto [slots, _] = itemPtr.getClass().getEquipmentSlots(itemPtr);
int slot = 0;
for (std::size_t i = 0; i < slots.size(); ++i)
{
if (inv.getSlot(slots[i]) == inv.getSelectedEnchantItem())
{
slot = slots[i];
break;
}
}
cast.cast(itemPtr, slot);
cast.cast(itemPtr);
}
}
}

Loading…
Cancel
Save