summaryrefslogtreecommitdiff
path: root/src/group_cmd.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
commitabd9f748715c3f1278d54637c725e18d5cbe5bd5 (patch)
treea82f738989c2591bdcb5d757a2d2cc647a67f8c5 /src/group_cmd.cpp
parentca3f1f64068e28109a5b6d62f88ef5f18f581856 (diff)
downloadopenttd-abd9f748715c3f1278d54637c725e18d5cbe5bd5.tar.xz
(svn r14096) -Codechange: merge the shared order's vehicle list management to a single location.
Diffstat (limited to 'src/group_cmd.cpp')
-rw-r--r--src/group_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp
index 44bfd12c1..c830d2f13 100644
--- a/src/group_cmd.cpp
+++ b/src/group_cmd.cpp
@@ -263,7 +263,7 @@ CommandCost CmdAddSharedVehicleGroup(TileIndex tile, uint32 flags, uint32 p1, ui
if (v->group_id != id_g) continue;
/* For each shared vehicles add it to the group */
- for (Vehicle *v2 = GetFirstVehicleFromSharedList(v); v2 != NULL; v2 = v2->next_shared) {
+ for (Vehicle *v2 = v->FirstShared(); v2 != NULL; v2 = v2->NextShared()) {
if (v2->group_id != id_g) CmdAddVehicleGroup(tile, flags, id_g, v2->index);
}
}