From b5cb6aa638146a82302850c3cc15dceda8cb6d8a Mon Sep 17 00:00:00 2001
From: DCoded <dcoded@live.com>
Date: Thu, 6 Aug 2020 11:17:38 -0400
Subject: [PATCH] Bugfix

---
 src/endWeek/reports/childrenReport.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/endWeek/reports/childrenReport.js b/src/endWeek/reports/childrenReport.js
index 5b55d58c14a..2a8be4ef4d6 100644
--- a/src/endWeek/reports/childrenReport.js
+++ b/src/endWeek/reports/childrenReport.js
@@ -110,7 +110,7 @@ App.Facilities.Nursery.childrenReport = function childrenReport() {
 	function nannyFetishEffects(child) {
 		const
 			{ he } = getPronouns(child),
-			randomNanny = jsRandom(0, nannies.length),
+			randomNanny = NL > 1 ? jsRandom(0, nannies.length - 1) : 0,
 			slave = nannies[randomNanny];
 
 		if (slave.fetish !== "none") {
-- 
GitLab