[Scummvm-cvs-logs] SF.net SVN: scummvm: [22698] scummvm/trunk/engines/kyra/sound.cpp
vinterstum at users.sourceforge.net
vinterstum at users.sourceforge.net
Sat May 27 21:54:02 CEST 2006
Revision: 22698
Author: vinterstum
Date: 2006-05-27 21:53:22 -0700 (Sat, 27 May 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22698&view=rev
Log Message:
-----------
Adding a safety check before the stopHandle call().. May or may not be necessary.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/sound.cpp
Modified: scummvm/trunk/engines/kyra/sound.cpp
===================================================================
--- scummvm/trunk/engines/kyra/sound.cpp 2006-05-28 04:46:34 UTC (rev 22697)
+++ scummvm/trunk/engines/kyra/sound.cpp 2006-05-28 04:53:22 UTC (rev 22698)
@@ -82,7 +82,8 @@
}
void Sound::voiceStop() {
- _mixer->stopHandle(_vocHandle);
+ if (_mixer->isSoundHandleActive(_vocHandle))
+ _mixer->stopHandle(_vocHandle);
}
bool Sound::voiceIsPlaying() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list