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;