Fixed Win32 port crashing if sound was disabled.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user