(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:
smatz 2008-03-01 23:53:58 +00:00
parent c4e023bd6e
commit 8dacca9a71

View File

@ -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]));
} }