Skip to content

Commit 0ae5855

Browse files
committed
bugfix2 for recycle
1 parent 3d97d23 commit 0ae5855

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/prototype_creep_startup_tasks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ Creep.recycleCreep = function(creep) {
161161
const moveResult = creep.moveByPath(path);
162162
if (moveResult === OK) {
163163
recycleData.incompleteCount = 0;
164+
recycleData.path = path.subarray(1);
164165
creep.memory.recycleData = recycleData;
165166
return true;
166167
}

0 commit comments

Comments
 (0)