diff options
author | smatz <smatz@openttd.org> | 2008-03-01 23:53:58 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-03-01 23:53:58 +0000 |
commit | 8dacca9a71d69aae159b2e81a0fb55f22ef928d5 (patch) | |
tree | 4ae559b5c3d3832a3a1922df560eb08466bbfa55 | |
parent | c4e023bd6eb9a3ca9dadf86ab8289177c584dd4d (diff) | |
download | openttd-8dacca9a71d69aae159b2e81a0fb55f22ef928d5.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)
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
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])); } |