From 857bfcd04f7fe3085ce94361cd416ec5c5853a5d Mon Sep 17 00:00:00 2001
From: DCoded <dcoded@live.com>
Date: Sat, 5 Sep 2020 12:08:47 -0400
Subject: [PATCH] Fixed error reporting wrong variable

---
 src/npc/interaction/fAnimal.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/npc/interaction/fAnimal.js b/src/npc/interaction/fAnimal.js
index 84cea0ab0e7..744a77b192c 100644
--- a/src/npc/interaction/fAnimal.js
+++ b/src/npc/interaction/fAnimal.js
@@ -290,7 +290,7 @@ App.Interact.fAnimal = function(slave, type) {
 				consummationDevotedFeline(act);
 				break;
 			default:
-				throw new Error(`Unexpected animal type '${type}' in consummationDevoted()`);
+				throw new Error(`Unexpected animal type '${animal}' in consummationDevoted()`);
 		}
 
 		if (act !== oral) {
@@ -366,7 +366,7 @@ App.Interact.fAnimal = function(slave, type) {
 				consummationNondevotedFeline(act);
 				break;
 			default:
-				throw new Error(`Unexpected animal type '${type}' in consummationDevoted()`);
+				throw new Error(`Unexpected animal type '${animal}' in consummationDevoted()`);
 		}
 
 		if (act !== oral) {
@@ -442,7 +442,7 @@ App.Interact.fAnimal = function(slave, type) {
 				consummationNonresistantFeline(act);
 				break;
 			default:
-				throw new Error(`Unexpected animal type '${type}' in consummationNonresistant()`);
+				throw new Error(`Unexpected animal type '${animal}' in consummationNonresistant()`);
 		}
 
 		if (act !== oral) {
@@ -518,7 +518,7 @@ App.Interact.fAnimal = function(slave, type) {
 				consummationResistantFeline(act);
 				break;
 			default:
-				throw new Error(`Unexpected animal type '${type}' in consummationResistant()`);
+				throw new Error(`Unexpected animal type '${animal}' in consummationResistant()`);
 		}
 
 		if (act !== oral) {
@@ -613,7 +613,7 @@ App.Interact.fAnimal = function(slave, type) {
 				completionFeline();
 				break;
 			default:
-				throw new Error(`Unexpected animal type '${type}' in completion()`);
+				throw new Error(`Unexpected animal type '${animal}' in completion()`);
 		}
 
 		if (act !== oral && canGetPregnant(slave) && canBreed(slave, animal)) {
-- 
GitLab