diff options
author | smatz <smatz@openttd.org> | 2009-07-01 22:22:01 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-07-01 22:22:01 +0000 |
commit | adc5363202629aa07c762f459d7e9f5bc78efa34 (patch) | |
tree | b0c087f513113051159d435af05d823798b2ee67 /src/industry_cmd.cpp | |
parent | 15990079ce2bb53446305c5b61c7a620cd58b2dc (diff) | |
download | openttd-adc5363202629aa07c762f459d7e9f5bc78efa34.tar.xz |
(svn r16717) -Codechange: make IsFrontEngine() member of Train
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 92d510cd2..22c9ede1e 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -2023,7 +2023,7 @@ 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 && IsFrontEngine(v)) { + if (v->type == VEH_TRAIN && Train::From(v)->IsFrontEngine()) { for (const Vehicle *u = v; u != NULL; u = u->Next()) { CanCargoServiceIndustry(u->cargo_type, ind, &c_accepts, &c_produces); } |