diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/group_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp index 63e8f99fe..a8475a18f 100644 --- a/src/group_cmd.cpp +++ b/src/group_cmd.cpp @@ -274,7 +274,7 @@ CommandCost CmdAddSharedVehicleGroup(TileIndex tile, DoCommandFlag flags, uint32 /* For each shared vehicles add it to the group */ for (Vehicle *v2 = v->FirstShared(); v2 != NULL; v2 = v2->NextShared()) { - if (v2->group_id != id_g) CmdAddVehicleGroup(tile, flags, id_g, v2->index, text); + if (v2->group_id != id_g) DoCommand(tile, id_g, v2->index, flags, CMD_ADD_VEHICLE_GROUP, text); } } } @@ -313,7 +313,7 @@ CommandCost CmdRemoveAllVehiclesGroup(TileIndex tile, DoCommandFlag flags, uint3 if (v->group_id != old_g) continue; /* Add The Vehicle to the default group */ - CmdAddVehicleGroup(tile, flags, DEFAULT_GROUP, v->index, text); + DoCommand(tile, DEFAULT_GROUP, v->index, flags, CMD_ADD_VEHICLE_GROUP, text); } } |