mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-19 07:51:03 +00:00
Fix segfault when turning the console before the game is launched
(thus audio backend not yet initialised).
This commit is contained in:
parent
26bda18549
commit
f66d7a9540
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,10 @@ AL_StreamDie(void)
|
|||
{
|
||||
int numBuffers;
|
||||
|
||||
/* openal might not be initialised yet */
|
||||
if (!qalSourceStop)
|
||||
return;
|
||||
|
||||
streamPlaying = false;
|
||||
qalSourceStop(streamSource);
|
||||
|
||||
|
|
Loading…
Reference in a new issue