fixed server exists returning true for non-existent IPs

This commit is contained in:
Olivier Gagnon 2018-06-13 12:16:12 -04:00
parent b7b40d237a
commit 07c9f9e155

@ -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) {