summaryrefslogtreecommitdiff
path: root/src/station_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-10-18 17:53:34 +0000
committerrubidium <rubidium@openttd.org>2009-10-18 17:53:34 +0000
commite613107e02c5eb99532452811e8b9341199ceb29 (patch)
tree315f618588a592201e03a4db4828be34897ebd35 /src/station_gui.cpp
parentf11cebfe9b09bf5cf815d37ca6a19212755251ab (diff)
downloadopenttd-e613107e02c5eb99532452811e8b9341199ceb29.tar.xz
(svn r17808) -Codechange: remove write 'access' from all of CargoPacket's variables
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r--src/station_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index b0afb4e1a..a02385984 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -827,7 +827,7 @@ struct StationViewWindow : public Window {
const StationCargoList::List *packets = st->goods[i].cargo.Packets();
for (StationCargoList::List::const_iterator it = packets->begin(); it != packets->end(); it++) {
const CargoPacket *cp = *it;
- if (cp->source != station_id) {
+ if (cp->SourceStation() != station_id) {
bool added = false;
/* Enable the expand/hide button for this cargo type */
@@ -839,14 +839,14 @@ struct StationViewWindow : public Window {
/* Check if we already have this source in the list */
for (CargoDataList::iterator jt = cargolist.begin(); jt != cargolist.end(); jt++) {
CargoData *cd = &(*jt);
- if (cd->cargo == i && cd->source == cp->source) {
+ if (cd->cargo == i && cd->source == cp->SourceStation()) {
cd->count += cp->Count();
added = true;
break;
}
}
- if (!added) cargolist.push_back(CargoData(i, cp->source, cp->Count()));
+ if (!added) cargolist.push_back(CargoData(i, cp->SourceStation(), cp->Count()));
}
}
}