diff --git a/src/tbtr_template_gui_main.cpp b/src/tbtr_template_gui_main.cpp index 9d252a7c52..06f93a6971 100644 --- a/src/tbtr_template_gui_main.cpp +++ b/src/tbtr_template_gui_main.cpp @@ -696,7 +696,7 @@ public: /* Draw the number of trains that still need to be treated by the currently selected template replacement */ if (tid != INVALID_TEMPLATE) { const TemplateVehicle *tv = TemplateVehicle::Get(tid); - const uint num_trains = CountsTrainsNeedingTemplateReplacement(g_id, tv); + const uint num_trains = CountTrainsNeedingTemplateReplacement(g_id, tv); SetDParam(0, num_trains > 0 ? TC_ORANGE : TC_GREY); SetDParam(1, num_trains); draw_text(col2 + ScaleGUITrad(4), right - ScaleGUITrad(4), STR_TMPL_NUM_TRAINS_NEED_RPL, num_trains > 0 ? TC_BLACK : TC_GREY, SA_RIGHT); diff --git a/src/tbtr_template_vehicle_func.cpp b/src/tbtr_template_vehicle_func.cpp index 70adb4367a..2a7c95253a 100644 --- a/src/tbtr_template_vehicle_func.cpp +++ b/src/tbtr_template_vehicle_func.cpp @@ -321,7 +321,7 @@ void CopyWagonStatus(TemplateVehicle *from, Train *to) to->cargo_subtype = from->cargo_subtype; } -uint CountsTrainsNeedingTemplateReplacement(GroupID g_id, const TemplateVehicle *tv) +uint CountTrainsNeedingTemplateReplacement(GroupID g_id, const TemplateVehicle *tv) { uint count = 0; if (!tv) return count; diff --git a/src/tbtr_template_vehicle_func.h b/src/tbtr_template_vehicle_func.h index 81d9a811bf..6196b45e6d 100644 --- a/src/tbtr_template_vehicle_func.h +++ b/src/tbtr_template_vehicle_func.h @@ -42,7 +42,7 @@ struct TemplateDepotVehicles { Train* ContainsEngine(EngineID eid, Train *not_in); }; -uint CountsTrainsNeedingTemplateReplacement(GroupID g_id, const TemplateVehicle *tv); +uint CountTrainsNeedingTemplateReplacement(GroupID g_id, const TemplateVehicle *tv); CommandCost TestBuyAllTemplateVehiclesInChain(TemplateVehicle *tv, TileIndex tile);