summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/role.harvester.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/role.harvester.js b/src/role.harvester.js
index aae5a2c..5eaf2ef 100644
--- a/src/role.harvester.js
+++ b/src/role.harvester.js
@@ -8,7 +8,7 @@ module.exports = {
}
} else {
const spawn = Game.spawns['Initial'];
- if (creep.transfer(spawn), RESOURCE_ENERGY) == ERR_NOT_IN_RANGE) {
+ if (creep.transfer(spawn, RESOURCE_ENERGY) == ERR_NOT_IN_RANGE) {
creep.moveTo(spawn);
}
}