diff options
author | rubidium <rubidium@openttd.org> | 2009-10-19 09:15:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-10-19 09:15:47 +0000 |
commit | 08ac51fada56ee84a98ced07c2ec9a1b16bd8692 (patch) | |
tree | 7975e0cae230445acefafd170adcc975dd2f6c42 /src/saveload | |
parent | 2cca30d2e308ca63eacdfcc9d45920c4b2f2a37c (diff) | |
download | openttd-08ac51fada56ee84a98ced07c2ec9a1b16bd8692.tar.xz |
(svn r17813) -Codechange: unify the CargoPacket related coding style
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/cargopacket_sl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/cargopacket_sl.cpp b/src/saveload/cargopacket_sl.cpp index dc0d3cc95..57081fc51 100644 --- a/src/saveload/cargopacket_sl.cpp +++ b/src/saveload/cargopacket_sl.cpp @@ -28,7 +28,7 @@ */ FOR_ALL_VEHICLES(v) { const VehicleCargoList::List *packets = v->cargo.Packets(); - for (VehicleCargoList::List::const_iterator it = packets->begin(); it != packets->end(); it++) { + for (VehicleCargoList::ConstIterator it(packets->begin()); it != packets->end(); it++) { CargoPacket *cp = *it; cp->source_xy = Station::IsValidID(cp->source) ? Station::Get(cp->source)->xy : v->tile; cp->loaded_at_xy = cp->source_xy; @@ -47,7 +47,7 @@ GoodsEntry *ge = &st->goods[c]; const StationCargoList::List *packets = ge->cargo.Packets(); - for (StationCargoList::List::const_iterator it = packets->begin(); it != packets->end(); it++) { + for (StationCargoList::ConstIterator it(packets->begin()); it != packets->end(); it++) { CargoPacket *cp = *it; cp->source_xy = Station::IsValidID(cp->source) ? Station::Get(cp->source)->xy : st->xy; cp->loaded_at_xy = cp->source_xy; |