mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-01 05:30:58 +00:00
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:
parent
f46c46864a
commit
185e89722a
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue