From e9fc10cbc6ce2bb8c5ed4ca47a85130e4f763377 Mon Sep 17 00:00:00 2001 From: x <okp57855@psoxs.com> Date: Sat, 22 Dec 2018 00:22:30 +1300 Subject: [PATCH] Edge case catching --- devNotes/twine JS.txt | 1 + src/SpecialForce/JS.js | 1 + 2 files changed, 2 insertions(+) diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index f5c8a638866..814519c0cbd 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -35615,6 +35615,7 @@ window.SFBC = function() { } V.SF.Facility = {Toggle:0, Active:0, LC:0, Workers:0, Max:5, Caps:"Special force support facility", Lower:"special force support facility", Decoration:"standard", Speed:0, Upgrade:0, IDs:[]}; } else { + if (V.SF.Active === -1) SFInit(); if (V.SF.MWU) { delete V.SF.MWU; } diff --git a/src/SpecialForce/JS.js b/src/SpecialForce/JS.js index fb6dc6f44ac..89fdd719287 100644 --- a/src/SpecialForce/JS.js +++ b/src/SpecialForce/JS.js @@ -605,6 +605,7 @@ window.SFBC = function() { } V.SF.Facility = {Toggle:0, Active:0, LC:0, Workers:0, Max:5, Caps:"Special force support facility", Lower:"special force support facility", Decoration:"standard", Speed:0, Upgrade:0, IDs:[]}; } else { + if (V.SF.Active === -1) SFInit(); if (V.SF.MWU) { delete V.SF.MWU; } -- GitLab