fix alloc error

This commit is contained in:
Glenn Maynard
2004-03-18 04:10:50 +00:00
parent dcb33fe120
commit 4c9be566f1
+1 -1
View File
@@ -270,7 +270,7 @@ void SoundMixBuffer::write( const Sint16 *buf, unsigned size, float volume, int
if( bufsize < realsize )
{
mixbuf = (Sint32 *) realloc( mixbuf, sizeof(Sint32) * realsize );
bufsize = size;
bufsize = realsize;
}
if( used < realsize )