From 9eabe4836e32a7c06cca9d95ee201ac2d7914dbd Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Mon, 19 Oct 2020 00:08:28 -0400 Subject: [PATCH] fix loops --- src/facilities/incubator/incubatorInteract.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/facilities/incubator/incubatorInteract.js b/src/facilities/incubator/incubatorInteract.js index a86bb80da75..80388dfc7f2 100644 --- a/src/facilities/incubator/incubatorInteract.js +++ b/src/facilities/incubator/incubatorInteract.js @@ -1558,7 +1558,7 @@ App.UI.incubator = function() { if (V.readySlaves === 1) { if (V.incubatorBulkRelease === 1) { V.newSlavePool = []; - for (let _inc = 0; _inc < V.tanks.length;) { + for (let _inc = 0; _inc < V.tanks.length; _inc++) { if (V.tanks[_inc].growTime <= 0) { V.incubatorOldID = V.tanks[_inc].ID; /* single slave case */ @@ -1573,7 +1573,7 @@ App.UI.incubator = function() { V.newSlavePool = 0; } } else { - for (let _inc = 0; _inc < V.incubatorSlaves;) { + for (let _inc = 0; _inc < V.incubatorSlaves; _inc++) { if (V.tanks[_inc].growTime <= 0) { V.incubatorOldID = V.tanks[_inc].ID; V.readySlave = V.tanks[_inc]; -- GitLab