diff --git a/src/Corporation/corporate-divisionBase.js b/src/Corporation/corporate-divisionBase.js index 2e840b48f80c94e3e3a02558747df262728dcd4d..2951cc8ebfb68ca0c76a3c88af531c191de9b61a 100644 --- a/src/Corporation/corporate-divisionBase.js +++ b/src/Corporation/corporate-divisionBase.js @@ -4,6 +4,7 @@ App.Corporate.Init_DivisionBase = function(shared) { constructor({id, name, focusDescription, sizeCost, maintenance, founding, merger}) { this._const = {}; this._const.id = id; + this._const.corpId = `corpDiv${capFirstChar(id)}`; this._const.cost = sizeCost; this._const.name = name; this._const.focusDescription = focusDescription; @@ -198,8 +199,7 @@ App.Corporate.Init_DivisionBase = function(shared) { } //private helpers - get corpDiv() { return `corpDiv${this._const.id}`; } - getStored(key ) { return V[this.corpDiv + key]; } - setStored(key, value) { V[this.corpDiv + key] = value; } + getStored(key ) { return V[this._const.corpId + key]; } + setStored(key, value) { V[this._const.corpId + key] = value; } }; }