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

View file

@ -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);