From ed0b43c3754f232f12c961714e9cb817a54e727f Mon Sep 17 00:00:00 2001 From: Stepland <10530295-Buggyroom@users.noreply.gitlab.com> Date: Sat, 11 Jun 2022 03:31:33 +0200 Subject: [PATCH] Fix playback when there's no music --- src/editor_state.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/editor_state.cpp b/src/editor_state.cpp index af94cd4..e90aa92 100644 --- a/src/editor_state.cpp +++ b/src/editor_state.cpp @@ -181,11 +181,7 @@ void EditorState::set_playback_position(std::variant newPosi }; sf::Time EditorState::get_precise_playback_position() { - if (music.has_value()) { - return audio.getPrecisePlayingOffset(); - } else { - return current_time(); - } + return audio.getPrecisePlayingOffset(); } Fraction EditorState::current_exact_beats() const {