parent
1ff7d54511
commit
e06369bed8
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue