diff options
author | rubidium <rubidium@openttd.org> | 2008-04-06 07:48:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-06 07:48:51 +0000 |
commit | 935b5620744b96c6b44e20e0ea89dc7bdca127c3 (patch) | |
tree | bf63686bb4da660cbcdc1074a869b5b86df60166 /src/openttd.cpp | |
parent | a3224512ccbc50a2bfaf6b3375db78dc5a807dca (diff) | |
download | openttd-935b5620744b96c6b44e20e0ea89dc7bdca127c3.tar.xz |
(svn r12588) -Codechange: do not access the destination of an order directly.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |