Add missing check to mixer sound

This commit is contained in:
NepDisk 2025-12-08 12:11:58 -05:00
parent 9aeaeacae0
commit 5a5305a34c

View file

@ -244,7 +244,8 @@ void I_ShutdownSound(void)
Mix_Quit();
#endif
SDL_QuitSubSystem(SDL_INIT_AUDIO);
if (SDL_WasInit(SDL_INIT_AUDIO) == SDL_INIT_AUDIO)
SDL_QuitSubSystem(SDL_INIT_AUDIO);
#ifdef HAVE_GME
if (gme)