mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 08:22:17 +00:00
Fix: Incorrect scroll bar capacity for train details window total cargo tab
This commit is contained in:
committed by
rubidium42
parent
6438bb4d07
commit
a5cb0529cb
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user