src/industry_cmd.cpp
changeset 8840 332412c2e9c1
parent 8836 f6f1ea3d7e93
child 8843 45fdf630deaa
--- a/src/industry_cmd.cpp	Sun Apr 06 07:22:26 2008 +0000
+++ b/src/industry_cmd.cpp	Sun Apr 06 07:48:51 2008 +0000
@@ -1969,7 +1969,7 @@
 		FOR_VEHICLE_ORDERS(v, o) {
 			if (o->IsType(OT_GOTO_STATION) && !HasBit(o->flags, OF_TRANSFER)) {
 				/* Vehicle visits a station to load or unload */
-				Station *st = GetStation(o->dest);
+				Station *st = GetStation(o->GetDestination());
 				if (!st->IsValid()) continue;
 
 				/* Same cargo produced by industry is dropped here => not serviced by vehicle v */