Fixed Win32 port crashing if sound was disabled.
This commit is contained in:
@@ -737,10 +737,10 @@ BOOL InitSound()
|
|||||||
WAVEFORMATEX wfx;
|
WAVEFORMATEX wfx;
|
||||||
DSBCAPS dsbcaps;
|
DSBCAPS dsbcaps;
|
||||||
|
|
||||||
if (cfgsoundon == 0) return FALSE;
|
|
||||||
|
|
||||||
SoundEnabled = 0;
|
SoundEnabled = 0;
|
||||||
|
|
||||||
|
if (cfgsoundon == 0) return FALSE;
|
||||||
|
|
||||||
PrevSoundQuality=SoundQuality;
|
PrevSoundQuality=SoundQuality;
|
||||||
PrevStereoSound=StereoSound;
|
PrevStereoSound=StereoSound;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user