(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:
@@ -399,7 +399,7 @@
|
||||
|
||||
uint32 amount = 0;
|
||||
for (const Vehicle *v = ::Vehicle::Get(vehicle_id); v != NULL; v = v->Next()) {
|
||||
if (v->cargo_type == cargo) amount += v->cargo.Count();
|
||||
if (v->cargo_type == cargo) amount += v->cargo.StoredCount();
|
||||
}
|
||||
|
||||
return amount;
|
||||
|
Reference in New Issue
Block a user