diff --git a/Emby.Naming/Video/VideoListResolver.cs b/Emby.Naming/Video/VideoListResolver.cs index 65cf7c928..7da2dcd7a 100644 --- a/Emby.Naming/Video/VideoListResolver.cs +++ b/Emby.Naming/Video/VideoListResolver.cs @@ -281,8 +281,7 @@ namespace Emby.Naming.Video var trimmedSecondBaseName = TrimFilenameDelimiters(secondBaseName, videoFlagDelimiters); var result = new List(); - var pos = remainingFiles.Count - 1; - for (; pos >= 0; pos--) + for (var pos = remainingFiles.Count - 1; pos >= 0; pos--) { var file = remainingFiles[pos]; if (file.ExtraType == null)