From 508496c29a430176b852e65115eeca19d78a167d Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Fri, 6 Mar 2020 19:58:56 -0500
Subject: [PATCH] geneMods

---
 js/003-data/gameVariableData.js                    |  1 +
 .../backwardsCompatibility.js                      | 14 +++++---------
 2 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/js/003-data/gameVariableData.js b/js/003-data/gameVariableData.js
index 6649367698f..3038ee6dd17 100644
--- a/js/003-data/gameVariableData.js
+++ b/js/003-data/gameVariableData.js
@@ -9,6 +9,7 @@ App.Data.defaultGameStateVariables = {
 	releaseID: 0,
 	slaveIndices: 0,
 	genePool: [],
+	geneMods: {NCS: 0, rapidCellGrowth: 0},
 	missingTable: {},
 	slaves: [],
 	showMissingSlaves: false,
diff --git a/src/data/backwardsCompatibility/backwardsCompatibility.js b/src/data/backwardsCompatibility/backwardsCompatibility.js
index b8ea98a6ba9..6555514ed54 100644
--- a/src/data/backwardsCompatibility/backwardsCompatibility.js
+++ b/src/data/backwardsCompatibility/backwardsCompatibility.js
@@ -1908,15 +1908,11 @@ App.Update.HeroSlavesCleanup = function() {
 				setup.whiteAmericanSlaveNames).random();
 		}
 		generatePronouns(s);
-		if (s.geneMods === undefined) {
-			s.geneMods = {NCS: 0, rapidCellGrowth: 0};
-		} else {
-			if (s.geneMods.NCS === undefined) {
-				s.geneMods.NCS = 0;
-			}
-			if (s.geneMods.rapidCellGrowth === undefined) {
-				s.geneMods.rapidCellGrowth = 0;
-			}
+		if (s.geneMods.NCS === undefined) {
+			s.geneMods.NCS = 0;
+		}
+		if (s.geneMods.rapidCellGrowth === undefined) {
+			s.geneMods.rapidCellGrowth = 0;
 		}
 		// WombInit(s);
 	});
-- 
GitLab