diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index 856b514ae..912ef9997 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -1081,7 +1081,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS { workerScript.log("exit", () => "Failed. This is a bug. Report to dev."); } }, - scp: async function (scriptname: any, hostname1: any, hostname2: any): Promise { + scp: async function (scriptname: any, hostname1: any, hostname2?: any): Promise { updateDynamicRam("scp", getRamCost(Player, "scp")); if (arguments.length !== 2 && arguments.length !== 3) { throw makeRuntimeErrorMsg("scp", "Takes 2 or 3 arguments");