1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-07-22 04:14:04 +00:00

Initialize speed for magic projectiles

This commit is contained in:
Allofich 2016-09-15 01:44:53 +09:00
parent dc8ff5e49b
commit 7eb62b5d3a

View file

@ -41,6 +41,7 @@ namespace
ESM::EffectList getMagicBoltData(std::vector<std::string>& projectileIDs, std::vector<std::string>& sounds, float& speed, std::string& texture, const ESM::EffectList& effects) ESM::EffectList getMagicBoltData(std::vector<std::string>& projectileIDs, std::vector<std::string>& sounds, float& speed, std::string& texture, const ESM::EffectList& effects)
{ {
int count = 0; int count = 0;
speed = 0.0f;
ESM::EffectList projectileEffects; ESM::EffectList projectileEffects;
for (std::vector<ESM::ENAMstruct>::const_iterator iter (effects.mList.begin()); for (std::vector<ESM::ENAMstruct>::const_iterator iter (effects.mList.begin());
iter!=effects.mList.end(); ++iter) iter!=effects.mList.end(); ++iter)