Fix: Incorrect scroll bar capacity for train details window total cargo tab

This commit is contained in:
Jonathan G Rennison
2026-02-21 14:24:28 +01:00
committed by rubidium42
parent 6438bb4d07
commit a5cb0529cb
+1 -1
View File
@@ -333,7 +333,7 @@ int GetTrainDetailsWndVScroll(VehicleID veh_id, TrainDetailsWindowTabs det_tab)
}
num = max_cargo.GetCount();
num++; // needs one more because first line is description string
num += 2; // needs two more because the first line is the description string and the last is the feeder share
} else {
for (const Train *v = Train::Get(veh_id); v != nullptr; v = v->GetNextVehicle()) {
GetCargoSummaryOfArticulatedVehicle(v, _cargo_summary);