summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-17 19:56:17 +0000
committerrubidium <rubidium@openttd.org>2008-08-17 19:56:17 +0000
commit66b9ea9a5afeafac9fbc49e993bba4c9056f83b2 (patch)
treea82f738989c2591bdcb5d757a2d2cc647a67f8c5 /src/openttd.cpp
parent8daea149e910772071e1feaa977e965fb493b348 (diff)
downloadopenttd-66b9ea9a5afeafac9fbc49e993bba4c9056f83b2.tar.xz
(svn r14096) -Codechange: merge the shared order's vehicle list management to a single location.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 31f175fcb..fb67df2d1 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -2272,7 +2272,7 @@ bool AfterLoadGame()
if (v->orders != NULL && !v->orders->IsValid()) v->orders = NULL;
v->current_order.ConvertFromOldSavegame();
- if (v->type == VEH_ROAD && v->IsPrimaryVehicle() && v->prev_shared == NULL) {
+ if (v->type == VEH_ROAD && v->IsPrimaryVehicle() && v->FirstShared() == v) {
FOR_VEHICLE_ORDERS(v, order) order->SetNonStopType(ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS);
}
}