Fixed Win32 port crashing if sound was disabled.

This commit is contained in:
n-a-c-h
2005-02-08 23:48:23 +00:00
parent 5cb42fecc7
commit 1130fb4df5

View File

@@ -737,10 +737,10 @@ BOOL InitSound()
WAVEFORMATEX wfx;
DSBCAPS dsbcaps;
if (cfgsoundon == 0) return FALSE;
SoundEnabled = 0;
if (cfgsoundon == 0) return FALSE;
PrevSoundQuality=SoundQuality;
PrevStereoSound=StereoSound;