TBTR: Fix incorrect cost estimates in GUI for templates.

pull/11/head
Jonathan G Rennison 7 years ago
parent d4157b3662
commit f499de6673

@ -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;

Loading…
Cancel
Save