From c256dc7e2fa37a1a9984afb23f257915875b977d Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Sat, 3 Jun 2017 08:03:58 -0400
Subject: [PATCH] Fixes.

---
 src/pregmod/personalNotes.tw              | 4 ++--
 src/pregmod/reLegendaryWomb.tw            | 2 +-
 src/uncategorized/pUndergroundRailroad.tw | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/pregmod/personalNotes.tw b/src/pregmod/personalNotes.tw
index 5b1042c3e78..fcc175bbcb5 100644
--- a/src/pregmod/personalNotes.tw
+++ b/src/pregmod/personalNotes.tw
@@ -105,7 +105,7 @@
 	Your slutty pants bulge more than ever with your big balls.
 <</if>>
 <<if $PC.dick == 1>>
-    <<if PC.ballsImplant > 3>>
+    <<if $PC.ballsImplant > 3>>
     	<<if $PC.butt > 2>>
 	    	<<if $PC.buttImplant == 1>>
 		    	Your slutty skirt is also forced to stretch around your enormous rear, making the implants pretty obvious. With both your front and back struggling to get free of your stretchy skirt, it isn't unusual for one or the other to peek out.
@@ -185,7 +185,7 @@
 	Your suit pants bulge more than ever with your big balls.
 <</if>>
 <<if $PC.dick == 1>>
-	<<if PC.ballsImplant > 3>>
+	<<if $PC.ballsImplant > 3>>
     	<<if $PC.butt > 2>>
 	    	<<if $PC.buttImplant == 1>>
 		    	Your custom kilt is also forced to stretch around your enormous rear, making the implants pretty obvious. With both your front and back struggling to get free of the restrictive cloth, it isn't unusual for one or the other to peek out.
diff --git a/src/pregmod/reLegendaryWomb.tw b/src/pregmod/reLegendaryWomb.tw
index 33e83cb33b8..08917dc4679 100644
--- a/src/pregmod/reLegendaryWomb.tw
+++ b/src/pregmod/reLegendaryWomb.tw
@@ -1,6 +1,6 @@
 :: RE legendary womb [nobr]
  
-<<set $nextButton = "Continue", $nextLink = "AS Dump", $returnTo = "RIE Eligibility Check", $activeSlave = ($legendaryFacility == 1) ? $slaves.find(function(s) { return s.ID == $legendaryEntertainerID; }) : $eventSlave>>
+<<set $nextButton = "Continue", $nextLink = "AS Dump", $returnTo = "RIE Eligibility Check", $activeSlave = ($legendaryFacility == 1) ? $slaves.find(function(s) { return s.ID == $legendaryWombID; }) : $eventSlave>>
 
 <<if (ndef $activeSlave)>> /* not found - reset variable and stop event */
 	<<set $legendaryWombID = 0>>
diff --git a/src/uncategorized/pUndergroundRailroad.tw b/src/uncategorized/pUndergroundRailroad.tw
index 9a8cb64f050..d8c3ce33fd8 100644
--- a/src/uncategorized/pUndergroundRailroad.tw
+++ b/src/uncategorized/pUndergroundRailroad.tw
@@ -5,7 +5,7 @@
 <<set $activeSlave = $slaves.find(function(s) { return s.fuckdoll == 0 && s.amp != 1 && s.devotion < 75 && canTalk(s) && ["whore", "serve the public", "serve in the club", "work in the brothel"].includes(s.assignment); })>>
 <<if (ndef $activeSlave)>> /* search again without assignments limitation */
 	<<set $activeSlave = $slaves.find(function(s) { return s.fuckdoll == 0 && s.amp != 1 && s.devotion < 75 && canTalk(s); })>>
-	<<if (ndef $activeSlave.ID)>> /* still no match */
+	<<if (ndef $activeSlave)>> /* still no match */
 		<<set $activeSlave = $slaves.random()>>
 	<</if>>
 <</if>>
-- 
GitLab