From 4a395562f20720f075c0e2c1ea21c335696d60e9 Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 1 Mar 2008 23:53:58 +0000 Subject: [PATCH] (svn r12323) -Fix [FS#1821](r6789): vehicle sorting by name was broken, it was comparing two the same strings (when caching was not used) --- src/vehicle_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 809f62d4f3..bc35c2479f 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])); }