From 9693007223ebf6d958518a65966bfcc49c18d163 Mon Sep 17 00:00:00 2001 From: XenoAmess Date: Mon, 19 Sep 2022 05:07:02 +0800 Subject: [PATCH] bugfix2 for recycle --- src/prototype_creep_startup_tasks.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/prototype_creep_startup_tasks.js b/src/prototype_creep_startup_tasks.js index 9c9a3af1e..798a2c58b 100644 --- a/src/prototype_creep_startup_tasks.js +++ b/src/prototype_creep_startup_tasks.js @@ -161,6 +161,7 @@ Creep.recycleCreep = function(creep) { const moveResult = creep.moveByPath(path); if (moveResult === OK) { recycleData.incompleteCount = 0; + recycleData.path = path.subarray(1); creep.memory.recycleData = recycleData; return true; }