From a43cd31164f277a1772aeec9a0742de7f0e8c936 Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Fri, 28 Sep 2018 01:31:21 -0400
Subject: [PATCH] Missing nursery BC setters

---
 src/uncategorized/BackwardsCompatibility.tw | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/uncategorized/BackwardsCompatibility.tw b/src/uncategorized/BackwardsCompatibility.tw
index 5e3f2466cd4..a6ab55a4e4d 100644
--- a/src/uncategorized/BackwardsCompatibility.tw
+++ b/src/uncategorized/BackwardsCompatibility.tw
@@ -657,6 +657,18 @@
 <<if ndef $nursery>>
 	<<set $nursery = 0>>
 <</if>>
+<<if ndef $NurseryiIDs>>
+	<<set $NurseryiIDs = []>>
+<</if>>
+<<if $NurseryiIDs.length > 0 && typeof $NurseryiIDs[0] === 'object'>>
+	<<set $NurseryiIDs = $NurseryiIDs.map(function(a) { return a.ID; })>>
+<</if>>
+<<if ndef $nurserySlaves>>
+	<<set $nurserySlaves = 0>>
+<</if>>
+<<if ndef $nurseryBabies>>
+	<<set $nurseryBabies = 0>>
+<</if>>
 <<if ndef $Matron>>
 	<<set $Matron = 0>>
 <</if>>
-- 
GitLab