mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 02:53:51 +00:00
stopSound crash fix
This commit is contained in:
parent
67a6a8f5d4
commit
53158d29b1
2 changed files with 3 additions and 1 deletions
|
@ -612,6 +612,7 @@ namespace MWSound
|
||||||
|
|
||||||
void SoundManager::stopSound(MWBase::SoundPtr sound)
|
void SoundManager::stopSound(MWBase::SoundPtr sound)
|
||||||
{
|
{
|
||||||
|
if (sound.get())
|
||||||
mOutput->stopSound(sound);
|
mOutput->stopSound(sound);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -201,6 +201,7 @@ namespace MWSound
|
||||||
|
|
||||||
virtual void stopSound(MWBase::SoundPtr sound);
|
virtual void stopSound(MWBase::SoundPtr sound);
|
||||||
///< Stop the given sound from playing
|
///< 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);
|
virtual void stopSound3D(const MWWorld::Ptr &reference, const std::string& soundId);
|
||||||
///< Stop the given object from playing the given sound,
|
///< Stop the given object from playing the given sound,
|
||||||
|
|
Loading…
Reference in a new issue