forked from 0ad/0ad
Fix error for entities that require a technology to be trainable.
This was SVN commit r15357.
This commit is contained in:
parent
2766ae7eb5
commit
f460057700
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user