From 17bcb196b7531f0ac98dd95cedb1c86d9d1f1bcc Mon Sep 17 00:00:00 2001 From: kopareigns <kopareigns@gmail.com> Date: Mon, 11 Mar 2019 11:14:55 -0400 Subject: [PATCH] Fix --- src/pregmod/incubator.tw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pregmod/incubator.tw b/src/pregmod/incubator.tw index c5efa54a29e..c6aadbc121e 100644 --- a/src/pregmod/incubator.tw +++ b/src/pregmod/incubator.tw @@ -599,7 +599,7 @@ Target age for release: <<textbox "$targetAge" $targetAge "Incubator">> [[Minimu <<if _readySlaves == 1>> <<if $incubatorBulkRelease == 1>> <<set $newSlavePool = []>> - <<for _inc = 0; _inc < $incubatorSlaves; _inc++>> + <<for _inc = 0; _inc < $tanks.length; _inc++>> <<if $tanks[_inc].growTime <= 0>> <<set $incubatorOldID = $tanks[_inc].ID>> /* single slave case */ <<set _tempObject = {object: $tanks[_inc], ID: $tanks[_inc].ID}>> @@ -609,7 +609,7 @@ Target age for release: <<textbox "$targetAge" $targetAge "Incubator">> [[Minimu <</if>> <</for>> <<if $newSlavePool.length == 1>> - <<set $readySlave = $newSlavePool[0]>> + <<set $readySlave = $newSlavePool[0].object>> <<set $newSlavePool = 0>> <</if>> <<else>> -- GitLab