Use is operator instead of OfType
also fixes inverted comparison
This commit is contained in:
parent
f256c164d1
commit
d09003c113
|
@ -174,7 +174,7 @@ namespace BizHawk.Client.Common
|
||||||
|
|
||||||
_recordingBatch = false;
|
_recordingBatch = false;
|
||||||
|
|
||||||
if (batch.OfType<MovieActionMarker>().Count() != batch.Count)
|
if (batch.All(a => a is MovieActionMarker))
|
||||||
{
|
{
|
||||||
return _movie.InputLogLength;
|
return _movie.InputLogLength;
|
||||||
}
|
}
|
||||||
|
@ -202,7 +202,7 @@ namespace BizHawk.Client.Common
|
||||||
|
|
||||||
_recordingBatch = false;
|
_recordingBatch = false;
|
||||||
|
|
||||||
if (batch.OfType<MovieActionMarker>().Count() != batch.Count)
|
if (batch.All(a => a is MovieActionMarker))
|
||||||
{
|
{
|
||||||
return _movie.InputLogLength;
|
return _movie.InputLogLength;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue