From 512dde8c112e3dcf441b95ff6ed6790828c966c9 Mon Sep 17 00:00:00 2001
From: corncobman21 <corncobman21@hotmail.com>
Date: Fri, 9 Mar 2018 03:29:41 -0500
Subject: [PATCH] Fix for custom slave voice not setting correctly

---
 src/uncategorized/seCustomSlaveDelivery.tw | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/uncategorized/seCustomSlaveDelivery.tw b/src/uncategorized/seCustomSlaveDelivery.tw
index d26664ad962..b72157121a5 100644
--- a/src/uncategorized/seCustomSlaveDelivery.tw
+++ b/src/uncategorized/seCustomSlaveDelivery.tw
@@ -80,8 +80,10 @@
 <<if $customSlave.analVirgin == 0>>
 	<<set $activeSlave.anus = $customSlave.analVirgin>>
 <</if>>
-<<if $customSlave.voice != -1>>
+<<if def $customSlave.voice && $customSlave.voice != -1>>
 	<<set $activeSlave.voice = $customSlave.voice>>
+<<else>>
+	<<set $activeSlave.voice = random(0,3)>>
 <</if>>
 <<set $activeSlave.health = $customSlave.health>>
 <<set $activeSlave.muscles = $customSlave.muscles>>
-- 
GitLab