1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 21:53:52 +00:00

Fix for loading projectile speed

This commit is contained in:
Allofich 2016-09-05 05:41:24 +09:00
parent f8270f6bd5
commit c617e90755

View file

@ -486,6 +486,10 @@ namespace MWWorld
state.mActorId = esm.mActorId;
state.mStack = esm.mStack;
state.mEffects = getMagicBoltData(state.mIdMagic, state.mSoundIds, state.mSpeed, esm.mEffects);
state.mSpeed = esm.mSpeed; // speed is derived from non-projectile effects as well as
// projectile effects, so we can't calculate it from the save
// file's effect list, which is already trimmed of non-projectile
// effects. We need to use the stored value.
std::string model;
try