Merge branch 'dev' into refactor-out-circular-dependencies

This commit is contained in:
Steven Evans
2018-08-07 10:00:49 -04:00
committed by GitHub
20 changed files with 833 additions and 681 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ function NetscriptFunctions(workerScript) {
*/
const getPurchaseServerRamCostGuard = (ram) => {
const guardedRam = Math.round(ram);
if (isNaN(guardedRam) || !powerOfTwo(guardedRam)) {
if (isNaN(guardedRam) || !isPowerOfTwo(guardedRam)) {
throw Error("failed due to invalid ram argument. Must be numeric and a power of 2");
}