Skip to content

Commit

Permalink
wrap sound_init_success in #if defined(SDL_SOUND) block
Browse files Browse the repository at this point in the history
  • Loading branch information
HadeanLake committed Oct 3, 2024
1 parent f61d1cd commit a7a01f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sdltiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3722,10 +3722,12 @@ void catacurses::init_interface()
color_loader<SDL_Color>().load( windowsPalette );
init_colors();

#if defined(SDL_SOUND)
// initialize sound set
if( sound_init_success ) {
load_soundset();
}
#endif // SOUND

font = std::make_unique<FontFallbackList>( renderer, format, fl.fontwidth, fl.fontheight,
windowsPalette, fl.typeface, fl.fontsize, fl.fontblending );
Expand Down

0 comments on commit a7a01f3

Please sign in to comment.