From 5d3d30673c2bd0ec320fa4428ee8243e202190bc Mon Sep 17 00:00:00 2001
From: ErzengelLichtes <erzengel.des.lichtes@gmail.com>
Date: Sat, 29 Dec 2018 21:23:57 -0800
Subject: [PATCH] If the PC gives birth to a single child you get a number of
 errors because _p wasn't set. Rather than replace them all with "0" I just
 set _p to 0.

---
 src/pregmod/sePlayerBirth.tw | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pregmod/sePlayerBirth.tw b/src/pregmod/sePlayerBirth.tw
index edd6d64a0b4..6afe7fc1a72 100644
--- a/src/pregmod/sePlayerBirth.tw
+++ b/src/pregmod/sePlayerBirth.tw
@@ -444,7 +444,7 @@ You arrange yourself to give birth, relaxing until your body urges you to begin
 	<<set $PC.birthOther += _others, $PC.birthSelf += _self, $PC.birthCitizen += _citizens, $PC.birthMaster += _oldMaster, $PC.birthArcOwner += _arcOwner, $PC.birthClient += _clients, $PC.birthElite += _elite, $PC.birthLab += _lab, $PC.birthDegenerate += _slavesLength>>
 
 	<<if _curBabies == 1>>
-
+        <<set _p = 0>>
 		<<if $PC.curBabies[_p].genetics.race == $PC.origRace>>
 			<<set _PCDegree++>>
 		<</if>>
-- 
GitLab