src/station_cmd.cpp
changeset 8836 f6f1ea3d7e93
parent 8832 6d8cc04d39a4
child 8840 332412c2e9c1
--- a/src/station_cmd.cpp	Sat Apr 05 21:45:05 2008 +0000
+++ b/src/station_cmd.cpp	Sat Apr 05 23:36:54 2008 +0000
@@ -1898,7 +1898,7 @@
 		if (player == INVALID_PLAYER || v->owner == player) {
 			const Order *order;
 			FOR_VEHICLE_ORDERS(v, order) {
-				if (order->type == OT_GOTO_STATION && order->dest == station) {
+				if (order->IsType(OT_GOTO_STATION) && order->dest == station) {
 					return true;
 				}
 			}