From ba90ff38ff0a35214f9b7d83a2b376968476cb37 Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Tue, 22 Sep 2020 16:17:29 -0700
Subject: [PATCH] Remove extra slave lookup

---
 src/endWeek/saGuardYou.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/endWeek/saGuardYou.js b/src/endWeek/saGuardYou.js
index 8de6917f25c..18b96d005fb 100644
--- a/src/endWeek/saGuardYou.js
+++ b/src/endWeek/saGuardYou.js
@@ -312,7 +312,7 @@ App.SlaveAssignment.guardYou = (function() {
 				if (candidate) {
 					if ((slave.intelligence + slave.intelligenceImplant - flawedTrainee) > jsRandom(1, 500)) {
 						r.push(`By the end of the week, ${he} is satisfied that ${candidate.slaveName} <span class="green">has the combat skill</span> to contribute to your defense.`);
-						V.slaves[V.slaveIndices[candidate.ID]].skill.combat = 1;
+						candidate.skill.combat = 1;
 					}
 				} else {
 					r.push(`${He} finds no suitable candidates to serve as ${his} replacement, leaving ${him} stressed over your future safety. The worry is <span class="red">exhausting</span> and <span class="red">bad for ${his} health.</span>`);
-- 
GitLab