From 0d5bfe50b1f815dce60a57c5261624ec6b375996 Mon Sep 17 00:00:00 2001
From: corncobman21 <corncobman21@hotmail.com>
Date: Sat, 23 Dec 2017 03:18:07 -0500
Subject: [PATCH] Check for free tanks

---
 src/pregmod/sePlayerBirth.tw | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/pregmod/sePlayerBirth.tw b/src/pregmod/sePlayerBirth.tw
index b4345de49b9..535b10ab1cb 100644
--- a/src/pregmod/sePlayerBirth.tw
+++ b/src/pregmod/sePlayerBirth.tw
@@ -557,6 +557,10 @@ You arrange yourself to give birth, relaxing until your body urges you to begin
 	<<if $tanks.length < $incubator>>
 		| <<link $incubatorNameCaps>>
 			<<replace "#choice">>
+			    <<if $freeTanks < _count>>
+					<<set _count = $freeTanks>>
+					You only have enough free tanks in $incubatorName for _count of your children.
+				<</if>>
 				<<set $PC.reservedChildren = _count>>
 				You have decided to send your child<<if _count > 1>>ren<</if>> to $incubatorName, to be grown and eventually trained as <<if _count == 1>>a <</if>>new slave<<if _count > 1>>s<</if>>.
 				<<include "Incubator Workaround">>
-- 
GitLab