summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-07-29 14:02:27 +0000
committerpeter1138 <peter1138@openttd.org>2007-07-29 14:02:27 +0000
commitf975e2e85c2dbee272eec7b00a327aaf66509a22 (patch)
treead7f82394f441ad426ead1dcb015a52970f87f27 /src
parent76fea51ada807531a167c619c8f8b2a0ba73d7b5 (diff)
downloadopenttd-f975e2e85c2dbee272eec7b00a327aaf66509a22.tar.xz
(svn r10721) -Fix [FS#1084]: Skip articulated parts of road vehicles during unique name check.
Diffstat (limited to 'src')
-rw-r--r--src/vehicle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index d01494927..2d2b865fa 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -2392,6 +2392,7 @@ static bool IsUniqueVehicleName(const char *name)
break;
case VEH_ROAD:
+ if (!IsRoadVehFront(v)) continue;
break;
case VEH_AIRCRAFT: