port over a sound init fix from oldtree that prevents a crash if sound doesn't

init properly
This commit is contained in:
Bill Currie 2000-09-07 17:31:07 +00:00
parent 51aa5518ae
commit 9f476ee5c6

View file

@ -228,6 +228,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");