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/openttd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/openttd.cpp') diff --git a/src/openttd.cpp b/src/openttd.cpp index bbe017a35..923a67af5 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -2305,7 +2305,7 @@ bool AfterLoadGame() /* Update go to buoy orders because they are just waypoints */ Order *order; FOR_ALL_ORDERS(order) { - if (order->IsType(OT_GOTO_STATION) && GetStation(order->dest)->IsBuoy()) { + if (order->IsType(OT_GOTO_STATION) && GetStation(order->GetDestination())->IsBuoy()) { order->flags = 0; } } -- cgit v1.2.3-70-g09d2