From 47842543d6b8c62df9f791eda270230b9db67b9a Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Sat, 6 Feb 2021 02:46:09 -0500
Subject: [PATCH] Fix ovary surgeries

---
 src/facilities/surgery/surgeryPassageLower.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/facilities/surgery/surgeryPassageLower.js b/src/facilities/surgery/surgeryPassageLower.js
index 8d3408e33e2..81cd9118743 100644
--- a/src/facilities/surgery/surgeryPassageLower.js
+++ b/src/facilities/surgery/surgeryPassageLower.js
@@ -392,9 +392,13 @@ App.UI.surgeryPassageLower = function(slave, cheat = false) {
 							));
 						}
 					}
+					App.Events.addNode(el, r, "div");
+					App.UI.DOM.appendNewElement("div", el, App.UI.DOM.generateLinksStrip(linkArray), "choices");
 				}
 
 				if (slave.indentureRestrictions < 1 && (slave.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset")) {
+					r = [];
+					linkArray = [];
 					if (slave.ovaries === 1) {
 						if (slave.preg > 0) {
 							linkArray.push(
@@ -437,9 +441,13 @@ App.UI.surgeryPassageLower = function(slave, cheat = false) {
 							));
 						}
 					}
+					App.Events.addNode(el, r, "div");
+					App.UI.DOM.appendNewElement("div", el, App.UI.DOM.generateLinksStrip(linkArray), "choices");
 				}
 
 				if (V.seeExtreme === 1 && V.seeHyperPreg === 1 && V.seePreg !== 0 && V.permaPregImplant === 1) {
+					r = [];
+					linkArray = [];
 					if (slave.assignment === "work in the dairy" && V.dairyPregSetting > 0) {
 						r.push(`${His} womb is already rented out for the production of calves.`);
 					} else if (slave.broodmother > 0) {
-- 
GitLab