1
0
forked from 0ad/0ad

Check for builders that can't place foundations (e.g. Mauryan worker elephants)

This was SVN commit r12257.
This commit is contained in:
Deiz 2012-08-01 19:22:45 +00:00
parent d1d17b7222
commit c22476eee2

View File

@ -119,7 +119,7 @@ var EntityTemplate = Class({
buildableEntities: function() {
if (!this._template.Builder)
if (!this._template.Builder || !this._template.Builder.Entities._string)
return undefined;
var civ = this.civ();
var templates = this._template.Builder.Entities._string.replace(/\{civ\}/g, civ).split(/\s+/);