mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 16:15:31 +00:00
Fix crash when a magic projectile has no sound defined (Fixes #1967)
This commit is contained in:
parent
cd7cc4bec9
commit
95378aa6ac
1 changed files with 2 additions and 1 deletions
|
@ -153,6 +153,7 @@ namespace MWWorld
|
|||
Ogre::Vector3 pos(it->mNode->getPosition());
|
||||
Ogre::Vector3 newPos = pos + direction * duration * speed;
|
||||
|
||||
if (it->mSound.get())
|
||||
it->mSound->setPosition(newPos);
|
||||
|
||||
it->mNode->setPosition(newPos);
|
||||
|
|
Loading…
Reference in a new issue