aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2006-11-01 21:09:25 +0000
committerMax Horn2006-11-01 21:09:25 +0000
commite7dc2c0d0cabd2e9890903800aab7559115a0d9f (patch)
tree2f59be8d5f042aef3a89e1959baf3fc5b228092d /engines
parent69fa6abb37a6f405147902cbbbb73404040b7a3a (diff)
downloadscummvm-rg350-e7dc2c0d0cabd2e9890903800aab7559115a0d9f.tar.gz
scummvm-rg350-e7dc2c0d0cabd2e9890903800aab7559115a0d9f.tar.bz2
scummvm-rg350-e7dc2c0d0cabd2e9890903800aab7559115a0d9f.zip
Workaround for bug #1586894
svn-id: r24582
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/smush/saud_channel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/scumm/smush/saud_channel.cpp b/engines/scumm/smush/saud_channel.cpp
index 7a0f146e10..902934f943 100644
--- a/engines/scumm/smush/saud_channel.cpp
+++ b/engines/scumm/smush/saud_channel.cpp
@@ -172,9 +172,10 @@ bool SaudChannel::appendData(Chunk &b, int32 size) {
byte *SaudChannel::getSoundData() {
byte *tmp = _sbuffer;
- assert(_dataSize > 0);
- if (!_keepSize)
+ if (!_keepSize) {
+ assert(_dataSize > 0);
_dataSize -= _sbufferSize;
+ }
_sbuffer = 0;
_sbufferSize = 0;