diff options
author | rubidium <rubidium@openttd.org> | 2008-08-17 19:56:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-08-17 19:56:17 +0000 |
commit | abd9f748715c3f1278d54637c725e18d5cbe5bd5 (patch) | |
tree | a82f738989c2591bdcb5d757a2d2cc647a67f8c5 /src/vehiclelist.cpp | |
parent | ca3f1f64068e28109a5b6d62f88ef5f18f581856 (diff) | |
download | openttd-abd9f748715c3f1278d54637c725e18d5cbe5bd5.tar.xz |
(svn r14096) -Codechange: merge the shared order's vehicle list management to a single location.
Diffstat (limited to 'src/vehiclelist.cpp')
-rw-r--r-- | src/vehiclelist.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehiclelist.cpp b/src/vehiclelist.cpp index a76a34538..9f2d09c35 100644 --- a/src/vehiclelist.cpp +++ b/src/vehiclelist.cpp @@ -97,7 +97,7 @@ void GenerateVehicleSortList(VehicleList *list, VehicleType type, PlayerID owner /* Find a vehicle with the order in question */ if (v->orders != NULL && v->orders->index == index) { /* Add all vehicles from this vehicle's shared order list */ - for (v = GetFirstVehicleFromSharedList(v); v != NULL; v = v->next_shared) { + for (v = v->FirstShared(); v != NULL; v = v->NextShared()) { *list->Append() = v; } break; |