forked from mirror/OpenTTD
(svn r25185) -Fix [FS#5508]: Remove ambivalent functions CargoList::Empty() and Count(), and replace them with VehicleCargoList::StoredCount(), TotalCount(), StationCargoList::AvailableCount() and TotalCount(). (fonsinchen)
This commit is contained in:
@@ -802,7 +802,7 @@ struct DepotWindow : Window {
|
||||
for (const Vehicle *w = v; w != NULL; w = w->Next()) {
|
||||
if (w->cargo_cap > 0 && w->cargo_type < NUM_CARGO) {
|
||||
capacity[w->cargo_type] += w->cargo_cap;
|
||||
loaded [w->cargo_type] += w->cargo.Count();
|
||||
loaded [w->cargo_type] += w->cargo.StoredCount();
|
||||
}
|
||||
|
||||
if (w->type == VEH_TRAIN && !w->HasArticulatedPart()) {
|
||||
|
Reference in New Issue
Block a user