From 8dacca9a71d69aae159b2e81a0fb55f22ef928d5 Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 1 Mar 2008 23:53:58 +0000 Subject: (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 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])); } -- cgit v1.2.3-70-g09d2