1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Fix crash when a magic projectile has no sound defined (Fixes #1967)

This commit is contained in:
scrawl 2014-10-04 17:57:58 +02:00
parent cd7cc4bec9
commit 95378aa6ac

View File

@ -153,7 +153,8 @@ namespace MWWorld
Ogre::Vector3 pos(it->mNode->getPosition());
Ogre::Vector3 newPos = pos + direction * duration * speed;
it->mSound->setPosition(newPos);
if (it->mSound.get())
it->mSound->setPosition(newPos);
it->mNode->setPosition(newPos);