Fixed bugs in purchasing/upgrading hacknet nodes in Netscript. Fixed documentation for them as well

This commit is contained in:
Daniel Xie
2017-05-23 12:49:26 -05:00
parent 73c07841a3
commit ea17334792
4 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -436,7 +436,7 @@ processSingleHacknetNodeEarnings = function(numCycles, nodeObj) {
getHacknetNode = function(name) {
for (var i = 0; i < Player.hacknetNodes.length; ++i) {
if (Player.hacknetNodes[i].name == name) {
return player.hacknetNodes[i];
return Player.hacknetNodes[i];
}
}
return null;