mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 11:53:51 +00:00
Avoid redundant call
This commit is contained in:
parent
b372ac9119
commit
58e3900ea0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue