Fix inverted timestamp condition in branch id check

fixes 05abb3adfa
This commit is contained in:
Morilli 2024-04-20 12:46:28 +02:00
parent 1ff7d54511
commit e06369bed8
1 changed files with 2 additions and 2 deletions

View File

@ -292,10 +292,10 @@ namespace BizHawk.Client.Common
{ {
// intentionally not using linq here because this is called many times per frame // intentionally not using linq here because this is called many times per frame
int index = -1; int index = -1;
var timeStamp = DateTime.MaxValue; var timeStamp = DateTime.MinValue;
for (int i = 0; i < list.Count; i++) 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; index = i;
timeStamp = list[i].TimeStamp; timeStamp = list[i].TimeStamp;