From 5a5305a34ca5b22c9b4d49b278f313db3fd27232 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Mon, 8 Dec 2025 12:11:58 -0500 Subject: [PATCH] Add missing check to mixer sound --- src/sdl/mixer_sound.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c index dc56633fc..de9f66189 100644 --- a/src/sdl/mixer_sound.c +++ b/src/sdl/mixer_sound.c @@ -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)