From e8c2bb50ead2f39ac7f78957649f4aaf853347c7 Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Thu, 29 Mar 2018 20:14:50 -0400
Subject: [PATCH] fix to birth tracking

---
 devNotes/VersionChangeLog-Premod+LoliMod.txt | 4 +++-
 src/pregmod/sePlayerBirth.tw                 | 8 ++++----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/devNotes/VersionChangeLog-Premod+LoliMod.txt b/devNotes/VersionChangeLog-Premod+LoliMod.txt
index d0fd9987355..62687ab75f7 100644
--- a/devNotes/VersionChangeLog-Premod+LoliMod.txt
+++ b/devNotes/VersionChangeLog-Premod+LoliMod.txt
@@ -4,8 +4,10 @@
 
 3/29/2018
 
+	15
+	-fixed issue causing a slave's player children fathered to not properly track
+
 	14
-	
 	-you can now implant a belly implant post csec (non-seBirth only)
 	-added more hacking skill effects
 	-fixed bad syntax in seBirth
diff --git a/src/pregmod/sePlayerBirth.tw b/src/pregmod/sePlayerBirth.tw
index 9c2153f3991..199bfeea8b5 100644
--- a/src/pregmod/sePlayerBirth.tw
+++ b/src/pregmod/sePlayerBirth.tw
@@ -44,7 +44,7 @@ PC.pregSource documentation
 	<<set $PC.birthSelf += _curBabies>>
 <<else>>
 	<<set $PC.birthDegenerate += _curBabies>>
-	<<set _babyDaddy = $slaves.findIndex(function(s) { return s.ID == $slaves[$i].pregSource; })>>
+	<<set _babyDaddy = $slaves.findIndex(function(s) { return s.ID == $PC.pregSource; })>>
 	<<if _babyDaddy != -1>>
 		<<set $slaves[_babyDaddy].PCChildrenFathered += _curBabies>>
 	<</if>>
@@ -265,7 +265,7 @@ You arrange yourself to give birth, relaxing until your body urges you to begin
 			<<if _concubinePresent == 1>>
 				Or it would have been, had $Concubine.slaveName not driven you to an intense orgasm right as your first child entered the world.<<if $PC.balls > 1>> An orgasm that resulted in $Concubine.slaveName, $Nurse.slaveName, and your newborn getting sprayed with cum.<</if>> But it isn't over; before you've even had a chance to come down from your climax, the next infant slips into your birth canal and immediately pushes you back over the edge. $Concubine.slaveName slides in behind you to snuggle with you as you return to your senses after such an intense orgasm.
 			<<else>>
-				With one out, you realize your rounded belly still houses another. You moan as they begins their decent; with $Nurse.slaveName around, you aren't worried at all.
+				With one out, you realize your rounded belly still houses another. You moan as they begin their decent; with $Nurse.slaveName around, you aren't worried at all.
 			<</if>>
 			$Nurse.slaveName cuts the cords, swaddles your children, and hands you @@.lime;your new twins.@@
 		<</if>>
@@ -322,7 +322,7 @@ You arrange yourself to give birth, relaxing until your body urges you to begin
 			<<if _concubinePresent == 1>>
 				Or it would have, had $Concubine.slaveName not driven you to an intense orgasm right as your child entered the world.<<if $PC.balls > 1>> An orgasm that resulted in $Concubine.slaveName, $Bodyguard.slaveName, and your newborn getting sprayed with cum.<</if>> But it isn't over; before you've even had a chance to come down from your climax, the next infant slips into your birth canal and immediately pushes you back over the edge. $Concubine.slaveName slides in behind you to snuggle with you as you return to your senses after such an intense orgasm.
 			<<else>>
-				With one out, you realize your rounded belly still houses another. You moan as they begins their decent; with $Bodyguard.slaveName around, you feel completely safe.
+				With one out, you realize your rounded belly still houses another. You moan as they begin their decent; with $Bodyguard.slaveName around, you feel completely safe.
 			<</if>>
 			$Bodyguard.slaveName cuts the cords with her blade, and hands you @@.lime;your new twins.@@
 		<</if>>
@@ -376,7 +376,7 @@ You arrange yourself to give birth, relaxing until your body urges you to begin
 			<<if _concubinePresent == 1>>
 				Or it would have been, had $Concubine.slaveName not driven you to an intense orgasm right as your first child entered the world.<<if $PC.balls > 1>> An orgasm that resulted in $Concubine.slaveName, $HeadGirl.slaveName, and your newborn getting sprayed with cum.<</if>> But it isn't over; before you've even had a chance to come down from your climax, the next infant slips into your birth canal and immediately pushes you back over the edge. $Concubine.slaveName slides in behind you to snuggle with you as you return to your senses after such an intense orgasm.
 			<<else>>
-				With one out, you realize your rounded belly still houses another. You moan as they begins their decent; with $HeadGirl.slaveName around, you know everything is under control.
+				With one out, you realize your rounded belly still houses another. You moan as they begin their decent; with $HeadGirl.slaveName around, you know everything is under control.
 			<</if>>
 			$HeadGirl.slaveName cuts the cords, swaddles your children, and hands you @@.lime;your new twins.@@
 		<</if>>
-- 
GitLab