diff --git a/src/train_gui.cpp b/src/train_gui.cpp --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -322,10 +322,8 @@ int GetTrainDetailsWndVScroll(VehicleID int num = 0; if (det_tab == TDW_TAB_TOTALS) { // Total cargo tab - CargoArray act_cargo{}; CargoArray max_cargo{}; for (const Vehicle *v = Vehicle::Get(veh_id); v != nullptr; v = v->Next()) { - act_cargo[v->cargo_type] += v->cargo.StoredCount(); max_cargo[v->cargo_type] += v->cargo_cap; }