Fix bgm_songsel playing on error

This commit is contained in:
LoveEevee
2020-03-16 19:00:32 +03:00
parent 8f736b5b23
commit 95eef4e8db
2 changed files with 13 additions and 8 deletions

View File

@@ -177,13 +177,16 @@ class LoadSong{
if(title !== this.selectedSong.originalTitle){
title += " (" + this.selectedSong.originalTitle + ")"
}
this.clean()
new SongSelect(false, false, this.touchEnabled, null, {
name: "loadSongError",
title: title,
id: this.selectedSong.folder,
error: error
})
assets.sounds["v_start"].stop()
setTimeout(() => {
this.clean()
new SongSelect(false, false, this.touchEnabled, null, {
name: "loadSongError",
title: title,
id: this.selectedSong.folder,
error: error
})
}, 500)
}
this.error = true
}