diff options
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 4906d67a7..23b1e1e42 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -809,6 +809,8 @@ static int CDECL VehicleMaxSpeedSorter(const Vehicle * const *a, const Vehicle * int r = 0; if ((*a)->type == VEH_TRAIN && (*b)->type == VEH_TRAIN) { r = Train::From(*a)->tcache.cached_max_speed - Train::From(*b)->tcache.cached_max_speed; + } if ((*a)->type == VEH_AIRCRAFT && (*b)->type == VEH_AIRCRAFT) { + r = Aircraft::From(*a)->acache.cached_max_speed - Aircraft::From(*b)->acache.cached_max_speed; } else { r = (*a)->max_speed - (*b)->max_speed; } |