From 61b10f12daa37337adedaf1b24075f4aa5ded721 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Thu, 14 Jun 2012 12:24:29 +0200 Subject: [PATCH] Fix a crash when entering water with s_openal = 0 --- src/client/sound/snd_al.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/sound/snd_al.c b/src/client/sound/snd_al.c index d397e503..ef7260d9 100644 --- a/src/client/sound/snd_al.c +++ b/src/client/sound/snd_al.c @@ -429,6 +429,11 @@ void AL_Overwater() { int i; + if (sound_started != SS_OAL) + { + return; + } + // Apply to all sources for (i = 0; i < s_numchannels; i++) {