From 8d5d037a66512b34cc870265c936099cba20ef79 Mon Sep 17 00:00:00 2001
From: pregmodfan <pregmodfan@cock.li>
Date: Sat, 25 May 2019 13:45:35 +0300
Subject: [PATCH] birthstorm child tattoo fix

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

diff --git a/src/pregmod/birthStorm.tw b/src/pregmod/birthStorm.tw
index 11624a41275..25f1261f54f 100644
--- a/src/pregmod/birthStorm.tw
+++ b/src/pregmod/birthStorm.tw
@@ -43,7 +43,7 @@ The remote surgery allows the removal of the pregnancy generator through convent
 	<<set $activeSlave.devotion += 4>>
 <</if>>
 
-<<if $slaves[$i].birthsTat > -1>>
+<<if $activeSlave.birthsTat > -1>>
 	<<set $activeSlave.birthsTat++>>
 	The temporary tattoo of a child has been replaced with $his <<= ordinalSuffix($activeSlave.birthsTat)>> permanent infant.
 	<<run cashX(forceNeg($modCost), "slaveMod", $activeSlave)>>
-- 
GitLab