Fix segfault when turning the console before the game is launched

(thus audio backend not yet initialised).
This commit is contained in:
David CARLIER 2021-04-07 20:17:27 +01:00
parent 26bda18549
commit f66d7a9540

View file

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