From 3d71f8b234691545968d4bdfc5187735ecb29fd2 Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Fri, 31 May 2019 07:13:48 -0400
Subject: [PATCH] Better safety

---
 src/uncategorized/saServeYourOtherSlaves.tw | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/uncategorized/saServeYourOtherSlaves.tw b/src/uncategorized/saServeYourOtherSlaves.tw
index eb827d31113..50feecef4fe 100644
--- a/src/uncategorized/saServeYourOtherSlaves.tw
+++ b/src/uncategorized/saServeYourOtherSlaves.tw
@@ -115,10 +115,10 @@
 		<</if>>
 	<</if>>
 <</if>>
-<<set _fuckCount = Math.ceil((($dormitoryPopulation+$roomsPopulation)+random((($dormitoryPopulation+$roomsPopulation)*1),($dormitoryPopulation+$roomsPopulation)*7))/$subSlaves)>>
-<<if _fuckCount <= 0>>
-	<<set _fuckCount = 1>>
+<<if $subSlaves <= 0>>
+	<<set $subSlaves = 1>>
 <</if>>
+<<set _fuckCount = Math.ceil((($dormitoryPopulation+$roomsPopulation)+random((($dormitoryPopulation+$roomsPopulation)*1),($dormitoryPopulation+$roomsPopulation)*7))/$subSlaves)>>
 <<run SimpleSlaveFucking($slaves[$i], _fuckCount)>>
 <<set $slaves[$i].need -= 2*_fuckCount>>
 
-- 
GitLab