Use 'i+1' during progress

This commit is contained in:
Matt Nadareski
2020-10-28 13:21:42 -07:00
parent dfabb1a244
commit 40bdb9b2d9

View File

@@ -147,7 +147,7 @@ namespace BurnOutSharp
// Checkpoint
protections.TryGetValue(file, out string fullProtection);
FileProgress?.Report(new FileProtection(reportableFileName, i / (float)files.Count(), fullProtection ?? string.Empty));
FileProgress?.Report(new FileProtection(reportableFileName, (i + 1) / (float)files.Count(), fullProtection ?? string.Empty));
}
}