From 762f1c7307cbfd6669a96207f2fd70728e160d44 Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Thu, 30 Jul 2020 02:28:36 -0700
Subject: [PATCH] Fix bad dereference

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

diff --git a/src/uncategorized/saRelationships.tw b/src/uncategorized/saRelationships.tw
index 05ab346274d..db67b0c96e4 100644
--- a/src/uncategorized/saRelationships.tw
+++ b/src/uncategorized/saRelationships.tw
@@ -75,7 +75,7 @@
 				<<set _SlaveJ = $slaves[_j]>>
 				<<setLocalPronouns _SlaveJ 2>>
 				<<if (_SlaveJ.ID != _SlaveI.ID) && (_SlaveJ.relationship == 0) && (_SlaveI.rivalryTarget != _SlaveJ.ID) && (_SlaveJ.assignment != "stay confined") && (_SlaveJ.fetish != "mindbroken")>>
-				<<if (_SlaveJ.ID == _S.Madam.ID) && (_SlaveI.assignment == "work in the brothel")>>
+				<<if (_SlaveJ.ID == $MadamID) && (_SlaveI.assignment == "work in the brothel")>>
 					<<if _SlaveJ.rules.relationship != "restrictive">>
 						_SlaveI.slaveName manages to ingratiate $himself with the Madam, _SlaveJ.slaveName. The two slaves have @@.lightgreen;struck up a friendship.@@
 						<<set _SlaveJ.relationship = 1, _SlaveJ.relationshipTarget = _SlaveI.ID, _SlaveI.relationship = 1, _SlaveI.relationshipTarget = _SlaveJ.ID>>
-- 
GitLab