diff options
author | rubidium <rubidium@openttd.org> | 2008-04-05 23:36:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-05 23:36:54 +0000 |
commit | 3b0e3d8d3033265f6225d86df7be3189782868f6 (patch) | |
tree | 0ddf9ce628e1f7f3677425777bfeb4f04b23d7a0 /src/industry_cmd.cpp | |
parent | 4ff5d2057c5dabb0993325dfc0fba35acebd7291 (diff) | |
download | openttd-3b0e3d8d3033265f6225d86df7be3189782868f6.tar.xz |
(svn r12584) -Codechange: do not access the order type directly.
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 b2247e565..65ca9cf28 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1967,7 +1967,7 @@ int WhoCanServiceIndustry(Industry* ind) */ const Order *o; FOR_VEHICLE_ORDERS(v, o) { - if (o->type == OT_GOTO_STATION && !HasBit(o->flags, OF_TRANSFER)) { + if (o->IsType(OT_GOTO_STATION) && !HasBit(o->flags, OF_TRANSFER)) { /* Vehicle visits a station to load or unload */ Station *st = GetStation(o->dest); if (!st->IsValid()) continue; |