From f499de66731ea3e2a9014f9af376c10501fcb7f1 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 24 Jan 2017 19:45:32 +0000 Subject: [PATCH] TBTR: Fix incorrect cost estimates in GUI for templates. --- src/tbtr_template_vehicle_func.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tbtr_template_vehicle_func.cpp b/src/tbtr_template_vehicle_func.cpp index 3c5ead2592..3f149e0f96 100644 --- a/src/tbtr_template_vehicle_func.cpp +++ b/src/tbtr_template_vehicle_func.cpp @@ -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;