Fix importing custom songs

This commit is contained in:
LoveEevee 2020-03-14 12:44:29 +03:00
parent 7f1bb9d357
commit 0144367c6e
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@
order: index + 1,
type: "tja",
chart: file,
stars: {},
courses: {},
music: "muted"
}
var coursesAdded = false

View File

@ -2279,7 +2279,7 @@ class SongSelect{
})
}
this.draw.songFrame(config)
if(config.song.p2Cursor !== null && p2.socket.readyState === 1){
if("p2Cursor" in config.song && config.song.p2Cursor !== null && p2.socket.readyState === 1){
this.draw.diffCursor({
ctx: ctx,
font: this.font,