From: divverent Date: Fri, 14 Dec 2007 16:22:07 +0000 (+0000) Subject: CDAudio_Stop: also stop a paused track (fixes bgmvolume 0 related segfault) X-Git-Tag: xonotic-v0.1.0preview~2691 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=77c244fa6316d4f1b3b29aab15e9dbcf8878c290;p=xonotic%2Fdarkplaces.git CDAudio_Stop: also stop a paused track (fixes bgmvolume 0 related segfault) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7799 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cd_shared.c b/cd_shared.c index e56fa388..70f86cdb 100644 --- a/cd_shared.c +++ b/cd_shared.c @@ -201,7 +201,7 @@ void CDAudio_Play (unsigned char track, qboolean looping) void CDAudio_Stop (void) { - if (!enabled || !cdPlaying) + if (!enabled) return; if (faketrack != -1)