From a7a01f3fd446d978005ff1a3fb7db80f5c420b13 Mon Sep 17 00:00:00 2001 From: HadeanLake Date: Thu, 3 Oct 2024 23:49:06 +0300 Subject: [PATCH] wrap sound_init_success in #if defined(SDL_SOUND) block --- src/sdltiles.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sdltiles.cpp b/src/sdltiles.cpp index bea483bd987b6..6b94edc46b07a 100644 --- a/src/sdltiles.cpp +++ b/src/sdltiles.cpp @@ -3722,10 +3722,12 @@ void catacurses::init_interface() color_loader().load( windowsPalette ); init_colors(); +#if defined(SDL_SOUND) // initialize sound set if( sound_init_success ) { load_soundset(); } +#endif // SOUND font = std::make_unique( renderer, format, fl.fontwidth, fl.fontheight, windowsPalette, fl.typeface, fl.fontsize, fl.fontblending );