Requested update from quantumstate via IRC

This was SVN commit r11640.
This commit is contained in:
vts committed 2012-04-22 21:36:37 +00:00
1 parent b01a9c5471
commit bb9af6da12
2 files changed
+2 -2

No files matched your search

@@ -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+/);