From 0836d156526eb0805c8f9e3a368bd06c6440d897 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Sat, 7 Mar 2020 20:37:15 -0500
Subject: [PATCH] loop

---
 src/data/backwardsCompatibility/backwardsCompatibility.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/data/backwardsCompatibility/backwardsCompatibility.js b/src/data/backwardsCompatibility/backwardsCompatibility.js
index a6b50a4a2a4..04d6d277724 100644
--- a/src/data/backwardsCompatibility/backwardsCompatibility.js
+++ b/src/data/backwardsCompatibility/backwardsCompatibility.js
@@ -915,6 +915,13 @@ App.Update.globalVariables = function() {
 				}
 			}
 		}
+		// move from "V.corpDivArcade" format to "V.corp.DivArcade" (put corp into one object)
+		for (let variable in State.Variables ) {
+			if (variable.startsWith('corp')) {
+				console.log ("Corp: moving V.", variable, "to V.corp.", variable.slice(4));
+				V.corp[variable.slice(4)] = V[variable];
+			}
+		}
 	}
 
 	// Organs
-- 
GitLab