Firesource sound fix

This commit is contained in:
Regalis
2017-02-13 21:12:15 +02:00
parent 5871faa2dd
commit 1ea3044fd6

View File

@@ -344,8 +344,16 @@ namespace Barotrauma
lightSource.Remove();
if (basicSoundIndex > -1) Sounds.SoundManager.Stop(basicSoundIndex);
if (largeSoundIndex > -1) Sounds.SoundManager.Stop(largeSoundIndex);
if (basicSoundIndex > -1)
{
Sounds.SoundManager.Stop(basicSoundIndex);
basicSoundIndex = -1;
}
if (largeSoundIndex > -1)
{
Sounds.SoundManager.Stop(largeSoundIndex);
largeSoundIndex = -1;
}
hull.RemoveFire(this);
}