vehicle_gui.c
changeset 1294 4cdf0e76c093
parent 1279 bc761aad52b3
child 1299 39c06aba09aa
--- a/vehicle_gui.c	Fri Feb 04 20:17:15 2005 +0000
+++ b/vehicle_gui.c	Fri Feb 04 20:40:04 2005 +0000
@@ -176,7 +176,7 @@
 */
 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