Fixed bug with loading game when working on creating program

This commit is contained in:
Daniel Xie
2017-05-15 10:28:59 -05:00
parent 5039a03732
commit 51c8e7a6c6
4 changed files with 16 additions and 2 deletions
+1
View File
@@ -164,6 +164,7 @@ Script.prototype.updateRamUsage = function() {
var runCount = numOccurrences(codeCopy, "run(");
var getHackingLevelCount = numOccurrences(codeCopy, "getHackingLevel(");
var getServerMoneyAvailableCount = numOccurrences(codeCopy, "getServerMoneyAvailable(");
var numOperators = numNetscriptOperators(codeCopy);
this.ramUsage = baseRam +
((whileCount * CONSTANTS.ScriptWhileRamCost) +