1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 20:53:50 +00:00

stopSound crash fix

This commit is contained in:
scrawl 2015-12-05 01:54:16 +01:00
parent 67a6a8f5d4
commit 53158d29b1
2 changed files with 3 additions and 1 deletions

View file

@ -612,6 +612,7 @@ namespace MWSound
void SoundManager::stopSound(MWBase::SoundPtr sound)
{
if (sound.get())
mOutput->stopSound(sound);
}

View file

@ -201,6 +201,7 @@ namespace MWSound
virtual void stopSound(MWBase::SoundPtr sound);
///< Stop the given sound from playing
/// @note no-op if \a sound is null
virtual void stopSound3D(const MWWorld::Ptr &reference, const std::string& soundId);
///< Stop the given object from playing the given sound,