From 734994c9ba642f5c75b709d4b44e0c4b993a949a Mon Sep 17 00:00:00 2001 From: terkhen Date: Sat, 29 Jan 2011 17:30:25 +0000 Subject: (svn r21924) -Codechange: Unify some parts of the articulated vehicle code. -Cleanup: Avoid conversions to Train and RoadVehicle that are no longer required. --- src/industry_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/industry_cmd.cpp') diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 51e623943..84e35181b 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -2298,7 +2298,7 @@ static int WhoCanServiceIndustry(Industry *ind) /* Check whether it accepts the right kind of cargo */ bool c_accepts = false; bool c_produces = false; - if (v->type == VEH_TRAIN && Train::From(v)->IsFrontEngine()) { + if (v->type == VEH_TRAIN && v->IsFrontEngine()) { for (const Vehicle *u = v; u != NULL; u = u->Next()) { CanCargoServiceIndustry(u->cargo_type, ind, &c_accepts, &c_produces); } -- cgit v1.2.3-54-g00ecf