mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Add a few other checks
This commit is contained in:
parent
60c925b59b
commit
4198ec0d64
@ -32,7 +32,7 @@ namespace Wabbajack.Common
|
|||||||
{
|
{
|
||||||
public void ReportProgress(string operation, long currentPosition, long total)
|
public void ReportProgress(string operation, long currentPosition, long total)
|
||||||
{
|
{
|
||||||
if (currentPosition >= total)
|
if (currentPosition >= total || total < 1 || currentPosition < 0)
|
||||||
return;
|
return;
|
||||||
Utils.Status(operation, new Percent(total, currentPosition));
|
Utils.Status(operation, new Percent(total, currentPosition));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user