From 322a0ba8bb6f74a9af2618db539862baa4956572 Mon Sep 17 00:00:00 2001 From: Allofich Date: Thu, 15 Sep 2016 01:44:53 +0900 Subject: [PATCH] Initialize speed for magic projectiles --- apps/openmw/mwworld/projectilemanager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/openmw/mwworld/projectilemanager.cpp b/apps/openmw/mwworld/projectilemanager.cpp index 844800a41..c70f3de99 100644 --- a/apps/openmw/mwworld/projectilemanager.cpp +++ b/apps/openmw/mwworld/projectilemanager.cpp @@ -40,6 +40,7 @@ namespace ESM::EffectList getMagicBoltData(std::vector& projectileIDs, std::vector& sounds, float& speed, const ESM::EffectList& effects) { int count = 0; + speed = 0.0f; ESM::EffectList projectileEffects; for (std::vector::const_iterator iter (effects.mList.begin()); iter!=effects.mList.end(); ++iter)