From 6a4eef133c16cfec2a1f1a7b281a543862f47411 Mon Sep 17 00:00:00 2001 From: kopareigns <kopareigns@gmail.com> Date: Thu, 13 Dec 2018 19:30:04 -0500 Subject: [PATCH] Salvaging broken genetics --- src/pregmod/widgets/pregmodWidgets.tw | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pregmod/widgets/pregmodWidgets.tw b/src/pregmod/widgets/pregmodWidgets.tw index 29fe08a1e00..6ce2d5768eb 100644 --- a/src/pregmod/widgets/pregmodWidgets.tw +++ b/src/pregmod/widgets/pregmodWidgets.tw @@ -123,6 +123,11 @@ <<if ndef $args[0].lactationRules>> <<set $args[0].lactationRules = "none">> <</if>> +<<for _pmw = 0; _pmw < $args[0].womb.length; _pmw++>> + <<if $args[0].womb[_pmw].genetics.mother !== $args[0].ID || $args[0].womb[_pmw].genetics.father !== $args[0].womb[_pmw].fatherID>> + <<set $args[0].womb[_pmw].genetics = generateGenetics($args[0], $args[0].womb[_pmw].fatherID, _pmw)>> + <</if>> +<</for>> <</widget>> -- GitLab