(svn r12323) -Fix [FS#1821](r6789): vehicle sorting by name was broken, it was comparing two the same strings (when caching was not used)

pull/155/head
smatz 17 years ago
parent b120ff5276
commit 4a395562f2

@ -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…
Cancel
Save