diff --git a/src/Corporation/corporate-divisionBase.js b/src/Corporation/corporate-divisionBase.js index 021cc99ad67e24d8fb9b21c0b8c5761739d410a6..9239a9a4297959f00236e7d3d881a1aa4c393a81 100644 --- a/src/Corporation/corporate-divisionBase.js +++ b/src/Corporation/corporate-divisionBase.js @@ -193,7 +193,7 @@ App.Corporate.Init_DivisionBase = function(shared) { } // private helpers - getStored(key ) { return V.corp[this._const.corpID + key]; } - setStored(key, value) { V.corp[this._const.corpID + key] = value; } + getStored(key ) { return V.corp[this._const.corpId + key]; } + setStored(key, value) { V.corp[this._const.corpId + key] = value; } }; }; diff --git a/src/Corporation/corporate-divisionProcessing.js b/src/Corporation/corporate-divisionProcessing.js index 98359a6181e46fa14340c6efbd9518c9cca1ab12..368a8f5f010a74833c8cc6d29d13c5fabc27c9de 100644 --- a/src/Corporation/corporate-divisionProcessing.js +++ b/src/Corporation/corporate-divisionProcessing.js @@ -71,8 +71,8 @@ App.Corporate.Init_DivisionProcessing = function(shared) { dissolve() { App.Corporate.sellSlaves(this, this.heldSlaves); super.dissolve(); - delete V.corp[this._const.corpID + "Slaves"]; - delete V.corp[this._const.corpID + "Slaves2"]; + delete V.corp[this._const.corpId + "Slaves"]; + delete V.corp[this._const.corpId + "Slaves2"]; } diff --git a/src/Corporation/corporate-divisionWorking.js b/src/Corporation/corporate-divisionWorking.js index a5d7af8fa280eb796c414f01ac9433e35a763190..2cfbd382f0ce6d1d2a97c3a1561aa0ecbae9ceed 100644 --- a/src/Corporation/corporate-divisionWorking.js +++ b/src/Corporation/corporate-divisionWorking.js @@ -56,7 +56,7 @@ App.Corporate.Init_DivisionWorking = function(shared) { } dissolve() { super.dissolve(); - delete V.corp[this._const.corpID + "Slaves"]; + delete V.corp[this._const.corpId + "Slaves"]; } getAutoSendToMarket() { return false;