From 46c70038b423363e216aee16e8de3f39daa3201c Mon Sep 17 00:00:00 2001 From: Joseph Carter Date: Thu, 30 Dec 1999 06:46:29 +0000 Subject: [PATCH] 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. --- common/snd_dma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/snd_dma.c b/common/snd_dma.c index 69b137c..12973e8 100644 --- a/common/snd_dma.c +++ b/common/snd_dma.c @@ -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");