Don't unqueue OpenAL raw samples if OpenAL isn't initialized.

This fixes a crash at menu entry if a cinematic is playing when the
game is build with OpenAL support, but s_openal is set to 0.
This commit is contained in:
Yamagi Burmeister 2017-10-22 17:58:31 +02:00
parent f46c46864a
commit 185e89722a

View file

@ -165,7 +165,7 @@ M_PushMenu(void (*draw)(void), const char *(*key)(int))
}
#ifdef USE_OPENAL
if (cl.cinematic_file)
if (cl.cinematic_file && sound_started == SS_OAL)
{
AL_UnqueueRawSamples();
}