src/industry_cmd.cpp
changeset 8836 f6f1ea3d7e93
parent 8806 4fe163e0b52a
child 8840 332412c2e9c1
--- a/src/industry_cmd.cpp	Sat Apr 05 21:45:05 2008 +0000
+++ b/src/industry_cmd.cpp	Sat Apr 05 23:36:54 2008 +0000
@@ -1967,7 +1967,7 @@
 		 */
 		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;