start_bgm: Make BGM stop playing if new BGM is not found (instead of still playing old BGM).

This commit is contained in:
makise-homura 2017-01-30 22:20:07 +03:00
parent a141fd7d6b
commit 573ea5e49c

View file

@ -136,6 +136,7 @@ void start_bgm(char *name) {
warnx("start_bgm():\n!- BGM '%s' not exist", current_bgm.name);
free(current_bgm.name);
current_bgm.name = NULL;
stop_bgm();
return;
}
alSourceRewind(resources.bgmsrc);