From b34c535591763099f3ae784b6db9c38d5950dfe5 Mon Sep 17 00:00:00 2001 From: Richard Powell Date: Sun, 12 Sep 2021 20:06:20 -0700 Subject: [PATCH] Issue: Fixing a crash when a sheet has beats 0 and then you go to the last sheet. --- src/core/CalChartAnimation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/CalChartAnimation.cpp b/src/core/CalChartAnimation.cpp index 7fde97c7..1fd35a35 100644 --- a/src/core/CalChartAnimation.cpp +++ b/src/core/CalChartAnimation.cpp @@ -204,7 +204,7 @@ void Animation::GotoBeat(unsigned i) void Animation::GotoSheet(unsigned i) { - mCurrentSheetNumber = i; + mCurrentSheetNumber = mAnimSheetIndices.at(i); RefreshSheet(); }