From 3ffe410df05c8d78ca795fd05c20f7f041c42e93 Mon Sep 17 00:00:00 2001 From: kopareigns <kopareigns@gmail.com> Date: Fri, 26 Oct 2018 11:41:06 -0400 Subject: [PATCH] Fix --- devNotes/twine JS.txt | 4 +++- src/js/datatypeCleanupJS.tw | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index 5a4ff3ec780..03c7e54dd81 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -33664,7 +33664,9 @@ window.SlaveDatatypeCleanup = function SlaveDatatypeCleanup (slave) { } slave.areolae = Math.clamp(+slave.areolae, 0, 3) || 0; slave.areolaePiercing = Math.clamp(+slave.areolaePiercing, 0, 2) || 0; - slave.areolaeShape = "" + slave.areolaeShape || "circle"; + if (typeof slave.areolaeShape !== "string") { + slave.areolaeShape = "circle"; + } if (typeof slave.boobsTat !== "string") { slave.boobsTat = 0; } diff --git a/src/js/datatypeCleanupJS.tw b/src/js/datatypeCleanupJS.tw index aa49e6b8ba4..018f5961bc7 100644 --- a/src/js/datatypeCleanupJS.tw +++ b/src/js/datatypeCleanupJS.tw @@ -221,7 +221,9 @@ window.SlaveDatatypeCleanup = function SlaveDatatypeCleanup (slave) { } slave.areolae = Math.clamp(+slave.areolae, 0, 3) || 0; slave.areolaePiercing = Math.clamp(+slave.areolaePiercing, 0, 2) || 0; - slave.areolaeShape = "" + slave.areolaeShape || "circle"; + if (typeof slave.areolaeShape !== "string") { + slave.areolaeShape = "circle"; + } if (typeof slave.boobsTat !== "string") { slave.boobsTat = 0; } -- GitLab