summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index ecccc99a1..ebeb4384c 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1232,8 +1232,15 @@ static void LoadUnloadVehicle(Vehicle *v, int *cargo_left)
case VEH_SHIP:
t = u->vcache.cached_max_speed;
break;
- case VEH_ROAD: t = u->max_speed / 2; break;
- case VEH_AIRCRAFT: t = Aircraft::From(u)->GetSpeedOldUnits(); break; // Convert to old units.
+
+ case VEH_ROAD:
+ t = u->vcache.cached_max_speed / 2;
+ break;
+
+ case VEH_AIRCRAFT:
+ t = Aircraft::From(u)->GetSpeedOldUnits(); // Convert to old units.
+ break;
+
default: NOT_REACHED();
}