diff options
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 398db3eb5..404e82460 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1309,7 +1309,7 @@ struct VehicleDetailsWindow : Window { /* Add space for the cargo amount for each part. */ for (const Vehicle *u = v; u != NULL; u = u->Next()) { - height_extension += 11; + if (u->cargo_cap != 0) height_extension += 11; } ResizeWindow(this, 0, height_extension); |