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;