From 8e0e0c5afb9496db039b110bbcc68d2cb3a0f555 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Mon, 2 Mar 2020 10:43:58 -0500
Subject: [PATCH] switch womb to use V

---
 src/js/wombJS.js | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/js/wombJS.js b/src/js/wombJS.js
index 7deafe8bff5..8e36eddced9 100644
--- a/src/js/wombJS.js
+++ b/src/js/wombJS.js
@@ -891,9 +891,7 @@ window.WombGetLittersData = function(actor) {
 };
 
 window.BCReserveInit = function() {
-	let SV = State.variables;
-
-	SV.slaves.forEach(function(slave) {
+	V.slaves.forEach(function(slave) {
 		slave.womb.forEach(function(ft) {
 			if (typeof ft.reserve !== 'string') {
 				ft.reserve = "";
@@ -910,12 +908,12 @@ window.BCReserveInit = function() {
 		});
 	});
 
-	SV.PC.womb.forEach(function(ft) {
+	V.PC.womb.forEach(function(ft) {
 		if (typeof ft.reserve !== 'string') {
 			ft.reserve = "";
 		}
 		if (typeof ft.motherID !== 'number') {
-			ft.motherID = SV.PC.ID;
+			ft.motherID = V.PC.ID;
 		}
 		if (typeof ft.realAge !== 'number') { // setting missing chronological age
 			ft.realAge = ft.age;
-- 
GitLab