From 185549e7e423b21ca9361a42ea67b49133a6460e Mon Sep 17 00:00:00 2001 From: Snarling <84951833+Snarling@users.noreply.github.com> Date: Sun, 28 Aug 2022 07:44:41 -0400 Subject: [PATCH] fix dynamic ram check --- src/Netscript/NetscriptHelpers.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Netscript/NetscriptHelpers.ts b/src/Netscript/NetscriptHelpers.ts index 043292ace..d799dfa10 100644 --- a/src/Netscript/NetscriptHelpers.ts +++ b/src/Netscript/NetscriptHelpers.ts @@ -299,6 +299,7 @@ function updateDynamicRam(ctx: NetscriptContext, ramCost: number): void { Sorry :(`, ); } + throw new ScriptDeath(ws); } /** Validates the input v as being a CityName. Throws an error if it is not. */