diff --git a/src/js/wombJS.js b/src/js/wombJS.js index 7deafe8bff514725589d8c470236e22de733e9e3..8e36eddced977b7255e6993b1c9d6adf713b2de9 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;