diff options
author | tron <tron@openttd.org> | 2005-02-04 20:40:04 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-04 20:40:04 +0000 |
commit | 4b71f9126e69aa1cb9c8293bc836401dfe7bdda4 (patch) | |
tree | 08aa6c9e8663023614f86710f85fdd0b8d8783b9 /vehicle_gui.c | |
parent | b4c3f9aaf0e9b922d09060f810b9ee2b3446d6c9 (diff) | |
download | openttd-4b71f9126e69aa1cb9c8293bc836401dfe7bdda4.tar.xz |
(svn r1798) GetFoo(i)->index is per definition i, so replace the former with the latter
Diffstat (limited to 'vehicle_gui.c')
-rw-r--r-- | vehicle_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |