Fix error for entities that require a technology to be trainable.

This was SVN commit r15357.
This commit is contained in:
leper 2014-06-14 22:28:06 +00:00
parent 2766ae7eb5
commit f460057700

View File

@ -567,7 +567,7 @@ g_SelectionPanels.Training = {
tooltip += "[color=\"255 251 131\"]" + formatBatchTrainingString(data.buildingsCountToTrainFullBatch, data.fullBatchSize, data.remainderBatch) + "[/color]";
if (!data.technologyEnabled)
{
var techName = getEntityNames(GetTechnologyData(template.requiredTechnology));
var techName = getEntityNames(GetTechnologyData(data.template.requiredTechnology));
tooltip += "\n" + sprintf(translate("Requires %(technology)s"), { technology: techName });
}
if (data.neededResources)