Fixed bug with creating program through Singularity function

This commit is contained in:
danielyxie 2019-01-16 21:27:24 -08:00
parent 2945025eb2
commit 435d183645
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

@ -3488,7 +3488,7 @@ function NetscriptFunctions(workerScript) {
return false;
}
if (!p.create.req()) {
if (!p.create.req(Player)) {
workerScript.scriptRef.log("ERROR: createProgram() failed because hacking level is too low to create " + p.name + " (level " + p.create.level + " req)");
return false
}