Skip to content

Commit

Permalink
Fix beat not being set to 0 on SM load
Browse files Browse the repository at this point in the history
  • Loading branch information
tillvit committed Nov 13, 2024
1 parent 2f2133f commit 303b5ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/chart/ChartManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,6 @@ export class ChartManager {
this.chartAudio.seek(0)
this.lastSong = null
this.smPath = path
this.beat = 0

this.loadingText.visible = true

Expand Down Expand Up @@ -765,7 +764,7 @@ export class ChartManager {
EventHandler.emit("smLoaded")
await this.loadChart()
EventHandler.emit("smLoadedAfter")
if (this.time == 0) this.beat = 0
this.beat = 0

RecentFileHandler.addSM(this.smPath, this.loadedSM)
}
Expand Down

0 comments on commit 303b5ed

Please sign in to comment.