# HG changeset patch # User smatz # Date 1204415638 0 # Node ID 80199fefc898beca0f9f085b474dda2a6d056529 # Parent 4e60d8c80ba33dfaff69e598e0e59fa4d001c072 (svn r12323) -Fix [FS#1821](r6789): vehicle sorting by name was broken, it was comparing two the same strings (when caching was not used) diff -r 4e60d8c80ba3 -r 80199fefc898 src/vehicle_gui.cpp --- a/src/vehicle_gui.cpp Fri Feb 29 22:55:57 2008 +0000 +++ b/src/vehicle_gui.cpp Sat Mar 01 23:53:58 2008 +0000 @@ -561,7 +561,7 @@ 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])); }