diff --git a/engine/common/soundlib/snd_utils.c b/engine/common/soundlib/snd_utils.c index d6eb6178..28ac3863 100644 --- a/engine/common/soundlib/snd_utils.c +++ b/engine/common/soundlib/snd_utils.c @@ -90,8 +90,8 @@ static byte *Sound_Copy( size_t size ) { byte *out; - out = Mem_Malloc( host.soundpool, size ); - memcpy( out, sound.tempbuffer, size ); + out = Mem_Realloc( host.soundpool, sound.tempbuffer, size ); + sound.tempbuffer = NULL; return out; }