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:
Joseph Carter 1999-12-30 06:46:29 +00:00
parent 8a2e473014
commit 46c70038b4

View file

@ -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");