From 5a7bac7b805f2f4c05351cf9166208e840a92a70 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Wed, 29 Apr 2020 13:35:09 -0400
Subject: [PATCH] fix

---
 src/pregmod/surrogacy.tw | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pregmod/surrogacy.tw b/src/pregmod/surrogacy.tw
index 5f78699dc77..dbebf1dbc0e 100644
--- a/src/pregmod/surrogacy.tw
+++ b/src/pregmod/surrogacy.tw
@@ -75,7 +75,7 @@
 			<<set $PC = $donatrix>>
 		<<else>>
 			<<set _surr = $slaves.findIndex(function(s) { return s.ID == $donatrix.ID; })>>
-			<<set getSlave($AS) = $donatrix>>
+			<<set $slaves[$slaveIndices[$AS]] = $donatrix>>
 		<</if>>
 		<<setLocalPronouns $receptrix>>
 		<<if $receptrix.fetish == "mindbroken">>
-- 
GitLab