From fd18ad54f6b25d1e1dc57222e3e5ef9996db4da9 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Sun, 21 Mar 2021 22:58:38 -0400
Subject: [PATCH] cleanup

---
 src/cheats/cheatEditSlave.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cheats/cheatEditSlave.js b/src/cheats/cheatEditSlave.js
index 2fa37887fa5..54fea744048 100644
--- a/src/cheats/cheatEditSlave.js
+++ b/src/cheats/cheatEditSlave.js
@@ -83,8 +83,8 @@ App.UI.SlaveInteract.cheatEditSlave = function(slave) {
 		App.UI.DOM.appendNewElement("div", el, App.UI.DOM.link(
 			"Apply cheat edits",
 			() => {
-				App.StartingGirls.cleanup(tempSlave);
-				V.slaves[V.slaveIndices[slave.ID]] = tempSlave;
+				App.StartingGirls.cleanup(V.tempSlave);
+				V.slaves[V.slaveIndices[slave.ID]] = V.tempSlave;
 				ibc.recalculate_coeff_id(slave.ID);
 				delete V.tempSlave;
 			},
-- 
GitLab