diff --git a/source/games/blood/src/sfx.cpp b/source/games/blood/src/sfx.cpp index b3fb905993d..7537237aff3 100644 --- a/source/games/blood/src/sfx.cpp +++ b/source/games/blood/src/sfx.cpp @@ -265,7 +265,7 @@ void sfxKill3DSound(DBloodActor* pActor, int a2, int a3) void sfxKillAllSounds(void) { - soundEngine->EnumerateChannels([](FSoundChan* channel) + if (soundEngine) soundEngine->EnumerateChannels([](FSoundChan* channel) { if (channel->SourceType == SOURCE_Actor || channel->SourceType == SOURCE_Unattached) soundEngine->StopChannel(channel); return false; diff --git a/source/games/blood/src/sound.cpp b/source/games/blood/src/sound.cpp index efff1ae3b98..a8beb71855c 100644 --- a/source/games/blood/src/sound.cpp +++ b/source/games/blood/src/sound.cpp @@ -218,7 +218,7 @@ void sndStartWavDisk(const char* pzFile, int nVolume, int nChannel) void sndKillAllSounds(void) { - soundEngine->StopSound(CHAN_AUTO); + if (soundEngine) soundEngine->StopSound(CHAN_AUTO); }