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:
parent
cd7cc4bec9
commit
95378aa6ac
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user