diff --git a/dist/bundle.js b/dist/bundle.js index 6624d113d..501bf7ad5 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -6546,7 +6546,7 @@ function prestigeHomeComputer(homeComp) { homeComp.programs.push(__WEBPACK_IMPORTED_MODULE_2__CreateProgram_js__["a" /* Programs */].NukeProgram); //Update RAM usage on all scripts - this.scripts.forEach(function(script) { + homeComp.scripts.forEach(function(script) { script.updateRamUsage(); }); diff --git a/src/Server.js b/src/Server.js index e7c391c79..f431d7fe8 100644 --- a/src/Server.js +++ b/src/Server.js @@ -697,7 +697,7 @@ function prestigeHomeComputer(homeComp) { homeComp.programs.push(Programs.NukeProgram); //Update RAM usage on all scripts - this.scripts.forEach(function(script) { + homeComp.scripts.forEach(function(script) { script.updateRamUsage(); });