diff --git a/src/js/storyJS.tw b/src/js/storyJS.tw index bac88df0e53003ecf645b88ed61c7b1db2086e96..b98205536d1e182870175d3d160de9ffd006c312 100644 --- a/src/js/storyJS.tw +++ b/src/js/storyJS.tw @@ -291,9 +291,14 @@ window.canImpreg = function(slave1, slave2) { /* contraceptives (.preg == -1) do not negate this function */ window.isFertile = function(slave) { + if (!slave) { return null; - } else if (slave.womb.length > 0 || slave.broodmother > 0) { /* currently pregnant or broodmother */ + } + + WombInit(slave); + + if (slave.womb.length > 0 || slave.broodmother > 0) { /* currently pregnant or broodmother */ return false; } else if (slave.preg < -1) { /* sterile */ return false;