Workaround for bug #1586894

svn-id: r24582
This commit is contained in:
Max Horn 2006-11-01 21:09:25 +00:00
parent 69fa6abb37
commit e7dc2c0d0c

View File

@ -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;