mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-21 19:32:30 +00:00
Ryan C. Gordon provided a small cleanup for snd_dma.c which fixes a crash
if sound could not be started properly for some reason.
This commit is contained in:
parent
8a2e473014
commit
46c70038b4
1 changed files with 3 additions and 0 deletions
|
@ -210,6 +210,9 @@ void S_Init (void)
|
|||
|
||||
S_Startup ();
|
||||
|
||||
if (sound_started == 0) // sound startup failed? Bail out.
|
||||
return;
|
||||
|
||||
SND_InitScaletable ();
|
||||
|
||||
known_sfx = Hunk_AllocName (MAX_SFX*sizeof(sfx_t), "sfx_t");
|
||||
|
|
Loading…
Reference in a new issue