From 166d3c78a9a457e3d8cfe62fc0aa8638872c0ffe Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Sun, 12 Jan 2020 20:06:23 -0500
Subject: [PATCH] handle exception betterer

---
 src/js/sexActsJS.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/js/sexActsJS.js b/src/js/sexActsJS.js
index f2d4dc643be..3375204a387 100644
--- a/src/js/sexActsJS.js
+++ b/src/js/sexActsJS.js
@@ -485,6 +485,9 @@ window.actX = function actX(slave, act, count = 1) {
 		case "vaginal":
 			V.vaginalTotal += count;
 			break;
+		default:
+			// Act was likely entered incorrectly.
+			return;
 	}
 	if (act === "birth") { // Annoyingly at the moment, V.birthsTotal means all the births in your arc.  Within the slave counter though, .birth is all births in your arc and .birthTotal includes births outside your arch.
 		slave.counter.birthToal += count;
-- 
GitLab