mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +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]) {
|
if (vb != last_vehicle[1]) {
|
||||||
last_vehicle[1] = vb;
|
last_vehicle[1] = vb;
|
||||||
SetDParam(1, vb->index);
|
SetDParam(0, vb->index);
|
||||||
GetString(last_name[1], STR_VEHICLE_NAME, lastof(last_name[1]));
|
GetString(last_name[1], STR_VEHICLE_NAME, lastof(last_name[1]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user