Use is operator instead of OfType

also fixes inverted comparison
This commit is contained in:
YoshiRulz 2019-03-28 00:53:20 +10:00
parent f256c164d1
commit d09003c113
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ namespace BizHawk.Client.Common
_recordingBatch = false;
if (batch.OfType<MovieActionMarker>().Count() != batch.Count)
if (batch.All(a => a is MovieActionMarker))
{
return _movie.InputLogLength;
}
@ -202,7 +202,7 @@ namespace BizHawk.Client.Common
_recordingBatch = false;
if (batch.OfType<MovieActionMarker>().Count() != batch.Count)
if (batch.All(a => a is MovieActionMarker))
{
return _movie.InputLogLength;
}