mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-02 04:13:26 +00:00
(svn r12323) -Fix [FS#1821](r6789): vehicle sorting by name was broken, it was comparing two the same strings (when caching was not used)
This commit is contained in:
parent
c4e023bd6e
commit
8dacca9a71
@ -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]));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user