Requested update from quantumstate via IRC
This was SVN commit r11640.
This commit is contained in:
parent
b01a9c5471
commit
bb9af6da12
@ -127,7 +127,7 @@ var EntityTemplate = Class({
|
||||
},
|
||||
|
||||
trainableEntities: function() {
|
||||
if (!this._template.ProductionQueue)
|
||||
if (!this._template.ProductionQueue || !this._template.ProductionQueue.Entities)
|
||||
return undefined;
|
||||
var civ = this.civ();
|
||||
var templates = this._template.ProductionQueue.Entities._string.replace(/\{civ\}/g, civ).split(/\s+/);
|
||||
|
@ -126,7 +126,7 @@ var EntityTemplate = Class({
|
||||
},
|
||||
|
||||
trainableEntities: function() {
|
||||
if (!this._template.ProductionQueue)
|
||||
if (!this._template.ProductionQueue || !this._template.ProductionQueue.Entities)
|
||||
return undefined;
|
||||
var civ = this.civ();
|
||||
var templates = this._template.ProductionQueue.Entities._string.replace(/\{civ\}/g, civ).split(/\s+/);
|
||||
|
Loading…
Reference in New Issue
Block a user