From 07c9f9e15581d05fa7f63caceb6c46f246b9942f Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Wed, 13 Jun 2018 12:16:12 -0400 Subject: [PATCH] fixed server exists returning true for non-existent IPs --- src/NetscriptFunctions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetscriptFunctions.js b/src/NetscriptFunctions.js index f2bfb3b0d..c26e1e1a2 100644 --- a/src/NetscriptFunctions.js +++ b/src/NetscriptFunctions.js @@ -1199,7 +1199,7 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("serverExists", CONSTANTS.ScriptGetServerRamCost); } updateDynamicRam("serverExists", CONSTANTS.ScriptGetServerRamCost); - return (getServer(ip) !== null); + return (getServer(ip) != null); }, fileExists : function(filename,ip=workerScript.serverIp) { if (workerScript.checkingRam) {