From 816ea3565dff8b42f5e1baaff11191bfed1037bb Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Sun, 25 Nov 2018 20:00:12 -0500
Subject: [PATCH] fix

---
 src/pregmod/csec.tw | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/pregmod/csec.tw b/src/pregmod/csec.tw
index e9c36a07155..680cd16ac4d 100644
--- a/src/pregmod/csec.tw
+++ b/src/pregmod/csec.tw
@@ -134,9 +134,9 @@
 
 <<set _cToIncub = 0, _cToNursery = 0>> 
 <<for _csec = 0; _csec < _curBabies; _csec++>>
-	<<if $slaves[$i].curBabies[_csec].reserve === "incubator">>
+	<<if $activeSlave.curBabies[_csec].reserve === "incubator">>
 		<<set _cToIncub++>>
-	<<elseif $slaves[$i].curBabies[_csec].reserve === "nursery">>
+	<<elseif $activeSlave.curBabies[_csec].reserve === "nursery">>
 		<<set _cToNursery++>>
 	<</if>>
 <</for>>
-- 
GitLab