[Scummvm-cvs-logs] SF.net SVN: scummvm: [24582] scummvm/trunk/engines/scumm/smush/saud_channel .cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Wed Nov 1 22:09:29 CET 2006
Revision: 24582
http://svn.sourceforge.net/scummvm/?rev=24582&view=rev
Author: fingolfin
Date: 2006-11-01 13:09:25 -0800 (Wed, 01 Nov 2006)
Log Message:
-----------
Workaround for bug #1586894
Modified Paths:
--------------
scummvm/trunk/engines/scumm/smush/saud_channel.cpp
Modified: scummvm/trunk/engines/scumm/smush/saud_channel.cpp
===================================================================
--- scummvm/trunk/engines/scumm/smush/saud_channel.cpp 2006-11-01 17:46:00 UTC (rev 24581)
+++ scummvm/trunk/engines/scumm/smush/saud_channel.cpp 2006-11-01 21:09:25 UTC (rev 24582)
@@ -172,9 +172,10 @@
byte *SaudChannel::getSoundData() {
byte *tmp = _sbuffer;
- assert(_dataSize > 0);
- if (!_keepSize)
+ if (!_keepSize) {
+ assert(_dataSize > 0);
_dataSize -= _sbufferSize;
+ }
_sbuffer = 0;
_sbufferSize = 0;
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