X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsound.c;h=a87b0dbcc3ad0241dd99b9b79a01d4cc9cc7f404;hb=b48dac24b604cdf088bcdca7392694d3312868e3;hp=3d085a9dbe8f8f336d241978616723cbcb8ec465;hpb=8856452341f9b8b59665b98d34850744f442caee;p=rocksndiamonds.git diff --git a/src/libgame/sound.c b/src/libgame/sound.c index 3d085a9d..a87b0dbc 100644 --- a/src/libgame/sound.c +++ b/src/libgame/sound.c @@ -609,7 +609,15 @@ static void LoadCustomMusic_NoConf(void) FreeAllMusic_NoConf(); - if ((dir = openDirectory(music_directory)) == NULL) + if (music_directory == NULL) + { + Warn("cannot find music directory with unconfigured music"); + + audio.music_available = FALSE; + + return; + } + else if ((dir = openDirectory(music_directory)) == NULL) { Warn("cannot read music directory '%s'", music_directory);