From d6623cf6541af8cb27359b59b97cb9e47f61bd0e Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 6 Apr 2008 07:48:51 +0000 Subject: (svn r12588) -Codechange: do not access the destination of an order directly. --- src/ai/trolly/trolly.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai/trolly') diff --git a/src/ai/trolly/trolly.cpp b/src/ai/trolly/trolly.cpp index 2876d240e..46aa0f10d 100644 --- a/src/ai/trolly/trolly.cpp +++ b/src/ai/trolly/trolly.cpp @@ -553,7 +553,7 @@ static bool AiNew_CheckVehicleStation(Player *p, Station *st) const Order *order; FOR_VEHICLE_ORDERS(v, order) { - if (order->IsType(OT_GOTO_STATION) && GetStation(order->dest) == st) { + if (order->IsType(OT_GOTO_STATION) && GetStation(order->GetDestination()) == st) { // This vehicle has this city in its list count++; } -- cgit v1.2.3-54-g00ecf