fix bug with getTaskTask release 50.1

This commit is contained in:
Olivier Gagnon
2021-03-22 18:42:39 -04:00
parent 29abffd464
commit ce7c2c309c
7 changed files with 21 additions and 17 deletions
+2 -2
View File
@@ -490,9 +490,9 @@ function NetscriptFunctions(workerScript) {
}
const getGangTask = function(func, name) {
const task = GangMemberTasks[taskName];
const task = GangMemberTasks[name];
if (!task) {
throw makeRuntimeErrorMsg(`gang.${func}`, `Invalid task: '${taskName}'`);
throw makeRuntimeErrorMsg(`gang.${func}`, `Invalid task: '${name}'`);
}
return task;