Lock mutex in playSoundEffect, should help threading safeness of the code.

svn-id: r31469
This commit is contained in:
Johannes Schickel 2008-04-10 19:05:05 +00:00
parent c13f2a73a3
commit 1bdc515880

View File

@ -443,6 +443,8 @@ void SoundMidiPC::haltTrack() {
}
void SoundMidiPC::playSoundEffect(uint8 track) {
Common::StackLock lock(_mutex);
if (_sfxParser && _sfxEnabled) {
_isSfxPlaying = true;
_sfxParser->setTrack(track);