Fix crash on invalid song

master
William Toohey 9 years ago
parent 4acbc04028
commit f45c9885e5
  1. 4
      src/js/ResourcePack.js

@ -420,8 +420,8 @@ class Respack {
newSongs.push(song);
debug(" [I] " + song.name, ": '" + song.title + "' added to songs");
} else {
debug(" WARNING!", "songs.xml: <song> element", i + 1,
"- no song '" + el.attributes[0].value + "' found");
debug(" WARNING!", "songs.xml: <song> element",
+ el.attributes[0].value + "- no song found");
}
}
for(let i = 0; i < this.songs.length; i++) {

Loading…
Cancel
Save