summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-03-01 23:53:58 +0000
committersmatz <smatz@openttd.org>2008-03-01 23:53:58 +0000
commit4a395562f20720f075c0e2c1ea21c335696d60e9 (patch)
tree4ae559b5c3d3832a3a1922df560eb08466bbfa55 /src/vehicle_gui.cpp
parentb120ff527631ea191deeac6ac01f441d42e22f56 (diff)
downloadopenttd-4a395562f20720f075c0e2c1ea21c335696d60e9.tar.xz
(svn r12323) -Fix [FS#1821](r6789): vehicle sorting by name was broken, it was comparing two the same strings (when caching was not used)
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r--src/vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 809f62d4f..bc35c2479 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -561,7 +561,7 @@ static int CDECL VehicleNameSorter(const void *a, const void *b)
if (vb != last_vehicle[1]) {
last_vehicle[1] = vb;
- SetDParam(1, vb->index);
+ SetDParam(0, vb->index);
GetString(last_name[1], STR_VEHICLE_NAME, lastof(last_name[1]));
}