Apply some free optimizations to TasMovieMarkerList
This commit is contained in:
parent
1c3f7204bd
commit
d7b92cbb72
|
@ -127,7 +127,7 @@ namespace BizHawk.Client.Common
|
|||
|
||||
public void Add(TasMovieMarker item, bool skipHistory)
|
||||
{
|
||||
var existingItem = this.FirstOrDefault(m => m.Frame == item.Frame);
|
||||
var existingItem = Find(m => m.Frame == item.Frame);
|
||||
if (existingItem != null)
|
||||
{
|
||||
if (existingItem.Message != item.Message)
|
||||
|
@ -335,7 +335,7 @@ namespace BizHawk.Client.Common
|
|||
|
||||
public TasMovieMarker Get(int frame)
|
||||
{
|
||||
return this.FirstOrDefault(m => m == frame);
|
||||
return Find(m => m == frame);
|
||||
}
|
||||
|
||||
public void ShiftAt(int frame, int offset)
|
||||
|
|
Loading…
Reference in New Issue