start_bgm: Make BGM stop playing if new BGM is not found (instead of still playing old BGM).
This commit is contained in:
parent
a141fd7d6b
commit
573ea5e49c
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue