From e06369bed86ff1e72edde6cfbe4ff52296b1fa6d Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Sat, 20 Apr 2024 12:46:28 +0200 Subject: [PATCH] Fix inverted timestamp condition in branch id check fixes 05abb3adfa2b208388f18df66c5ecbc01aebc1d0 --- src/BizHawk.Client.Common/movie/tasproj/TasBranch.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BizHawk.Client.Common/movie/tasproj/TasBranch.cs b/src/BizHawk.Client.Common/movie/tasproj/TasBranch.cs index f6ca142a6d..9e476bbde4 100644 --- a/src/BizHawk.Client.Common/movie/tasproj/TasBranch.cs +++ b/src/BizHawk.Client.Common/movie/tasproj/TasBranch.cs @@ -292,10 +292,10 @@ namespace BizHawk.Client.Common { // intentionally not using linq here because this is called many times per frame int index = -1; - var timeStamp = DateTime.MaxValue; + var timeStamp = DateTime.MinValue; for (int i = 0; i < list.Count; i++) { - if (list[i].Frame == frame && list[i].TimeStamp < timeStamp) + if (list[i].Frame == frame && list[i].TimeStamp > timeStamp) { index = i; timeStamp = list[i].TimeStamp;