From f7ec037fb7078f4031e462345b3d274596ccc94b Mon Sep 17 00:00:00 2001
From: pregmodfan <pregmodfan@cock.li>
Date: Sun, 25 Feb 2018 13:16:04 +0200
Subject: [PATCH] Improvement for WombNormalizePreg - it's now take care about
 .pellyPreg if it not set to zero after pregnancy end.

---
 src/js/wombJS.tw | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/js/wombJS.tw b/src/js/wombJS.tw
index 2f36be99a26..fd50e0e6705 100644
--- a/src/js/wombJS.tw
+++ b/src/js/wombJS.tw
@@ -260,11 +260,7 @@ window.WombNormalizePreg = function(actor)
             //console.log("advancing .preg");
         }
 
-        actor.pregType = actor.womb.length;
-
         actor.pregSource = actor.womb[0].fatherID;
-        
-        actor.bellyPreg = WombGetVolume(actor);
     } 
     else if (actor.womb.length == 0 && actor.broodmother < 1)
     {
@@ -280,4 +276,7 @@ window.WombNormalizePreg = function(actor)
         if (actor.pregWeek > 0) // We can't properly set postpartum here, but can normalize obvious error with forgotten property.
             actor.pregWeek = 0;
     }
+
+    actor.pregType = actor.womb.length;
+    actor.bellyPreg = WombGetVolume(actor);
 }
-- 
GitLab