forked from mirror/openmw-tes3mp
Preload VFX of spells selected by AI actors
This commit is contained in:
parent
57b585570a
commit
c4a89065a2
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue