TBTR: Fix incorrect cost estimates in GUI for templates.

This commit is contained in:
Jonathan G Rennison
2017-01-24 19:45:32 +00:00
parent d4157b3662
commit f499de6673

View File

@@ -109,7 +109,7 @@ Money CalculateOverallTemplateCost(const TemplateVehicle *tv)
{
Money val = 0;
for (; tv; tv = tv->Next()) {
for (; tv; tv = tv->GetNextUnit()) {
val += (Engine::Get(tv->engine_type))->GetCost();
}
return val;