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
|
@ -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 New Issue