|
|
@ -1907,7 +1907,7 @@ namespace MWWorld
|
|
|
|
std::string enchantId = selectedEnchantItem.getClass().getEnchantment(selectedEnchantItem);
|
|
|
|
std::string enchantId = selectedEnchantItem.getClass().getEnchantment(selectedEnchantItem);
|
|
|
|
if (!enchantId.empty())
|
|
|
|
if (!enchantId.empty())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const ESM::Enchantment* ench = mStore.get<ESM::Enchantment>().search(selectedEnchantItem.getClass().getEnchantment(selectedEnchantItem));
|
|
|
|
const ESM::Enchantment* ench = mStore.get<ESM::Enchantment>().search(enchantId);
|
|
|
|
if (ench)
|
|
|
|
if (ench)
|
|
|
|
preloadEffects(&ench->mEffects);
|
|
|
|
preloadEffects(&ench->mEffects);
|
|
|
|
}
|
|
|
|
}
|
|
|
|