diff options
author | rubidium <rubidium@openttd.org> | 2007-09-09 11:23:49 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-09 11:23:49 +0000 |
commit | 40b871410b557aa8fdf6c2ea1d872a2563c922ab (patch) | |
tree | f20482e13f3272992a0ec242e6105684bc4d19b0 /src/group_cmd.cpp | |
parent | efea7622acb6dbf5b4a75be3e0b0c6d016e5feb1 (diff) | |
download | openttd-40b871410b557aa8fdf6c2ea1d872a2563c922ab.tar.xz |
(svn r11068) -Codechange: remove Vehicle::HasFront as all vehicles have the Vehicle::first pointer correctly set.
Diffstat (limited to 'src/group_cmd.cpp')
-rw-r--r-- | src/group_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp index 7942d406e..2726c59f9 100644 --- a/src/group_cmd.cpp +++ b/src/group_cmd.cpp @@ -354,7 +354,7 @@ CommandCost CmdSetGroupReplaceProtection(TileIndex tile, uint32 flags, uint32 p1 */ void RemoveVehicleFromGroup(const Vehicle *v) { - if (!v->IsValid() || !(v->HasFront() && v->IsPrimaryVehicle())) return; + if (!v->IsValid() || !v->IsPrimaryVehicle()) return; if (!IsDefaultGroupID(v->group_id)) DecreaseGroupNumVehicle(v->group_id); } |