Preload VFX of spells selected by AI actors

pull/151/head
scrawl 8 years ago
parent 57b585570a
commit c4a89065a2

@ -426,6 +426,9 @@ namespace MWMechanics
MWWorld::InventoryStore& inv = actor.getClass().getInventoryStore(actor);
inv.setSelectedEnchantItem(inv.end());
}
const ESM::Spell* spell = MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().find(mSpellId);
MWBase::Environment::get().getWorld()->preloadEffects(&spell->mEffects);
}
float ActionSpell::getCombatRange (bool& isRanged) const

Loading…
Cancel
Save