Add a few other checks

This commit is contained in:
Timothy Baldridge 2020-02-25 06:27:50 -07:00 committed by GitHub
parent 60c925b59b
commit 4198ec0d64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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