From 30949404b136b071e9a80b2f5a4d9ed2c034e898 Mon Sep 17 00:00:00 2001
From: Arkerthan <arkerthan@gmail.com>
Date: Wed, 18 Sep 2019 14:04:34 +0200
Subject: [PATCH] use addProsthetic instead of direct access

---
 src/uncategorized/multiImplant.tw  | 2 +-
 src/uncategorized/remoteSurgery.tw | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/uncategorized/multiImplant.tw b/src/uncategorized/multiImplant.tw
index 210e0eb9a3e..88f76ef94c0 100644
--- a/src/uncategorized/multiImplant.tw
+++ b/src/uncategorized/multiImplant.tw
@@ -1011,7 +1011,7 @@ You head down to your <<if $surgeryUpgrade == 1>>heavily upgraded and customized
 			<<set _p = $adjustProsthetics[_k]>>
 			<<if _p.slaveID == $activeSlave.ID && _p.workLeft <= 0>>
 				<<set $adjustProsthetics.splice(_k, 1), _k-->>
-				<<set $activeSlave.readyProsthetics.push({id: _p.id})>>
+				<<set addProsthetic($activeSlave, _p.id)>>
 				<br><hr>
 				<<switch _p.id>>
 				<<case "ocular">>
diff --git a/src/uncategorized/remoteSurgery.tw b/src/uncategorized/remoteSurgery.tw
index c9981dfe7a8..e1e253978dd 100644
--- a/src/uncategorized/remoteSurgery.tw
+++ b/src/uncategorized/remoteSurgery.tw
@@ -8,7 +8,7 @@
 <<if $adjustProstheticsCompleted > 0>>
 	<<set $adjustProsthetics = $adjustProsthetics.filter(function(p) {
 		if (p.workLeft <= 0 && p.slaveID == $activeSlave.ID) {
-			$activeSlave.readyProsthetics.push({id: p.id});
+			addProsthetic($activeSlave, p.id);
 			$adjustProstheticsCompleted--;
 			return false;
 		}
-- 
GitLab