From 0900c87f3870ffdd38687593339f92fbc639d26b Mon Sep 17 00:00:00 2001 From: Daniel Xie Date: Sat, 24 Jun 2017 16:35:36 -0500 Subject: [PATCH] New Create Program saving progress feature bug fix --- src/Player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.js b/src/Player.js index 5cf95d6be..5e863c15a 100644 --- a/src/Player.js +++ b/src/Player.js @@ -864,7 +864,7 @@ PlayerObject.prototype.startCreateProgramWork = function(programName, time, reqL var res = programFile.split("-"); if (res.length != 3) {break;} var percComplete = Number(res[1].slice(0, -1)); - if (isNaN(percComplete) || percComplete <= 0 || percComplete >= 100) {break;} + if (isNaN(percComplete) || percComplete < 0 || percComplete >= 100) {break;} this.timeWorked = percComplete / 100 * this.timeNeededToCompleteWork; Player.getHomeComputer().programs.splice(i, 1); }