Fixed a crash in linux with cds

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@809 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-01-18 15:43:34 +00:00
parent 4e2299ef64
commit 85110f82db

View file

@ -342,13 +342,13 @@ void CDAudio_Update(void)
{ {
if (cdvolume) if (cdvolume)
{ {
Cvar_SetValue ("bgmvolume", 0.0); Cvar_SetValue (&bgmvolume, 0.0);
cdvolume = bgmvolume.value; cdvolume = bgmvolume.value;
CDAudio_Pause (); CDAudio_Pause ();
} }
else else
{ {
Cvar_SetValue ("bgmvolume", 1.0); Cvar_SetValue (&bgmvolume, 1.0);
cdvolume = bgmvolume.value; cdvolume = bgmvolume.value;
CDAudio_Resume (); CDAudio_Resume ();
} }