From 3dbc848098f10545d66a5dbf9d18b3d286953154 Mon Sep 17 00:00:00 2001 From: Snarling <84951833+Snarling@users.noreply.github.com> Date: Mon, 26 Sep 2022 09:31:49 -0400 Subject: [PATCH] Fix ram usage of scp-overwritten files --- src/NetscriptFunctions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index db76cbbbb..f4d616480 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -924,7 +924,7 @@ const base: InternalAPI = { continue; } destScript.code = sourceScript.code; - destScript.ramUsage = destScript.ramUsage; + destScript.ramUsage = sourceScript.ramUsage; destScript.markUpdated(); helpers.log(ctx, () => `WARNING: File '${file}' overwritten on '${destServer?.hostname}'`); continue;