mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-07 16:17:49 +02:00
NETSCRIPT: Don't make dynamicLoadedFns entries for free functions. (#1617)
This commit is contained in:
@@ -343,6 +343,7 @@ function netscriptDelay(ctx: NetscriptContext, time: number): Promise<void> {
|
||||
|
||||
/** Adds to dynamic ram cost when calling new ns functions from a script */
|
||||
function updateDynamicRam(ctx: NetscriptContext, ramCost: number): void {
|
||||
if (ramCost === 0) return;
|
||||
const ws = ctx.workerScript;
|
||||
const fnName = ctx.function;
|
||||
if (ws.dynamicLoadedFns[fnName]) return;
|
||||
|
||||
Reference in New Issue
Block a user