1
0
forked from 0ad/0ad

Requested update from quantumstate via IRC

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

View File

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

View File

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