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:
Yamagi 2021-04-08 11:04:17 +02:00 committed by GitHub
commit 56754ff8b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@ AL_StreamDie(void)
{
int numBuffers;
/* openal might not be initialised yet */
if (!qalSourceStop)
return;
streamPlaying = false;
qalSourceStop(streamSource);