From 63793041263223303f9bd9963101f5f050e8ad78 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 4 Feb 2005 20:40:04 +0000 Subject: (svn r1798) GetFoo(i)->index is per definition i, so replace the former with the latter --- vehicle_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vehicle_gui.c') diff --git a/vehicle_gui.c b/vehicle_gui.c index 62d720061..e88d3a8d4 100644 --- a/vehicle_gui.c +++ b/vehicle_gui.c @@ -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 -- cgit v1.2.3-54-g00ecf