Avoid redundant call

pull/579/head
Andrei Kortunov 5 years ago
parent b372ac9119
commit 58e3900ea0

@ -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);
} }

Loading…
Cancel
Save