(svn r1798) GetFoo(i)->index is per definition i, so replace the former with the latter

This commit is contained in:
tron
2005-02-04 20:40:04 +00:00
parent 981b6c1ecd
commit 6379304126
5 changed files with 5 additions and 5 deletions

View File

@@ -176,7 +176,7 @@ int CDECL GeneralOwnerSorter(const void *a, const void *b)
*/
int CDECL VehicleUnsortedSorter(const void *a, const void *b)
{
return GetVehicle((*(const SortStruct*)a).index)->index - GetVehicle((*(const SortStruct*)b).index)->index;
return ((const SortStruct*)a)->index - ((const SortStruct*)b)->index;
}
// if the sorting criteria had the same value, sort vehicle by unitnumber