From b71785e6671e3b79485c869635a2a8cd098d54f4 Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Wed, 3 Mar 2021 18:23:14 +0000
Subject: [PATCH] Safety check

---
 src/events/reArcologyInspection.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/events/reArcologyInspection.js b/src/events/reArcologyInspection.js
index 67244f54818..b4c4a2f56bd 100644
--- a/src/events/reArcologyInspection.js
+++ b/src/events/reArcologyInspection.js
@@ -443,7 +443,7 @@ App.Events.REArcologyInspection = class REArcologyInspection extends App.Events.
 		}
 
 		function virginityWarning() {
-			if (agent.vagina === 0 || agent.anus === 0) {
+			if (agent && (agent.vagina === 0 || agent.anus === 0)) {
 				return `This option may take a virginity`;
 			}
 			return null;
-- 
GitLab