From 1ed7bf8222ebfce732db1f00ed8e49e66ab593eb Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 11 Dec 2000 15:35:55 +0000 Subject: [PATCH] --- source/sound/sound.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/sound/sound.cpp b/source/sound/sound.cpp index 21d9d15b0..9372b6044 100644 --- a/source/sound/sound.cpp +++ b/source/sound/sound.cpp @@ -188,7 +188,9 @@ void CSoundMediator::think(int _frames) // Fade to target volume - speed=(_frames*VOLUME_CHANGE_SPEED)>>10; +ASSERT(_frames!=0); +if(_frames==0)_frames=1; + speed=_frames*VOLUME_CHANGE_SPEED; current=s_currentVolume; target=s_targetVolume; dirty=s_volumeDirty;