(svn r12323) -Fix [FS#1821](r6789): vehicle sorting by name was broken, it was comparing two the same strings (when caching was not used)
authorsmatz
Sat, 01 Mar 2008 23:53:58 +0000
changeset 8661 80199fefc898
parent 8660 4e60d8c80ba3
child 8662 2879ef051c0f
(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
--- 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]));
 	}