summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-11 10:34:01 +0000
committerrubidium <rubidium@openttd.org>2010-11-11 10:34:01 +0000
commite745bd9815e8a92064c3fdb7b271cfe5ac80a95f (patch)
treed1eeb295f419bfec609281edcdee228a58f90560 /src
parent6a1a4fc5bbf053465aaa74985e2418f7ae241dd9 (diff)
downloadopenttd-e745bd9815e8a92064c3fdb7b271cfe5ac80a95f.tar.xz
(svn r21144) -Change [FS#4206]: filter stations by cargo they have a rating for instead of having cargo waiting
Diffstat (limited to 'src')
-rw-r--r--src/station_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index 9b8e8f7ed..cf886eb57 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -238,7 +238,7 @@ protected:
if (this->facilities & st->facilities) { // only stations with selected facilities
int num_waiting_cargo = 0;
for (CargoID j = 0; j < NUM_CARGO; j++) {
- if (!st->goods[j].cargo.Empty()) {
+ if (HasBit(st->goods[j].acceptance_pickup, GoodsEntry::PICKUP)) {
num_waiting_cargo++; // count number of waiting cargo
if (HasBit(this->cargo_filter, j)) {
*this->stations.Append() = st;