mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 15:21:44 +00:00
Merge pull request #696 from devnexen/segfault_with_console_at_launch
Fix segfault when turning the console before the game is launched
This commit is contained in:
commit
56754ff8b8
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,10 @@ AL_StreamDie(void)
|
||||||
{
|
{
|
||||||
int numBuffers;
|
int numBuffers;
|
||||||
|
|
||||||
|
/* openal might not be initialised yet */
|
||||||
|
if (!qalSourceStop)
|
||||||
|
return;
|
||||||
|
|
||||||
streamPlaying = false;
|
streamPlaying = false;
|
||||||
qalSourceStop(streamSource);
|
qalSourceStop(streamSource);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue