From d48165612ee2907397d8c288f28ebdb38da0d9ce Mon Sep 17 00:00:00 2001 From: CroakFang <1605296300@qq.com> Date: Tue, 15 Aug 2023 22:44:17 +0800 Subject: [PATCH] bug fix --- .../umamusume/Gallop/Live/Cutt/LiveTimelineWorkSheet.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineWorkSheet.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineWorkSheet.cs index 9752ba2..8abd12e 100644 --- a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineWorkSheet.cs +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineWorkSheet.cs @@ -237,7 +237,11 @@ namespace Gallop.Live.Cutt float frame = time * 60; int mid = (low + high) / 2; - if (low == high || (frame >= thisList[mid].frame && frame < thisList[mid + 1].frame)) + if (high <= 0) + { + return 0; + } + else if (low == high || (frame >= thisList[mid].frame && frame < thisList[mid + 1].frame)) { return mid; }