diff --git a/src/Corporation/corporate-constants.js b/src/Corporation/corporate-constants.js index 4ab47e4d1f9c592ed25c4fee8637ff6fcdda9dbe..8b3278d7097987af4bb9ab3c2a69d88d4a86e35d 100644 --- a/src/Corporation/corporate-constants.js +++ b/src/Corporation/corporate-constants.js @@ -1,4 +1,5 @@ App.Corporate.InitConstants = function() { + if (!V.corp) { V.corp = {}; } App.Corporate.payoutMinimumCash = 1000000; App.Corporate.payoutCorpValueMultiplier = 0.05; App.Corporate.dividendOptions = [0.75, 0.5, 0.25, 0.1, 0.05]; diff --git a/src/init/setupVars.tw b/src/init/setupVars.tw index 1d7fdaeac0f6d0eeb65691a9359d1732883c2625..8a2594427cb0c8c5c94617b59777f0f01ee4e951 100644 --- a/src/init/setupVars.tw +++ b/src/init/setupVars.tw @@ -7,7 +7,4 @@ <<set setup[_k] = _v>> <</for>> <<run App.Art.cacheArtData()>> -<<if ndef $corp>> - <<set $corp = {}>> -<</if>> <<run App.Corporate.Init()>>