Merge pull request #579 from erri120/octodiff-fix

Fixed ArgumentException in Octodiff Reporter
This commit is contained in:
Timothy Baldridge 2020-02-25 16:11:03 -07:00 committed by GitHub
commit 5f0d47b1bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,8 @@ namespace Wabbajack.Common
{
public void ReportProgress(string operation, long currentPosition, long total)
{
if (currentPosition >= total || total < 1 || currentPosition < 0)
return;
Utils.Status(operation, new Percent(total, currentPosition));
}
}