diff options
author | rubidium <rubidium@openttd.org> | 2009-10-18 14:28:26 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-10-18 14:28:26 +0000 |
commit | 138e7233bce5ff5a9d20f54af80f6104303d6ca0 (patch) | |
tree | 7defa635be3e9968a2d18b8f106a580f33964de9 /src/saveload/afterload.cpp | |
parent | c52a26a73f7fae70811ab3b6bb3599041cee530f (diff) | |
download | openttd-138e7233bce5ff5a9d20f54af80f6104303d6ca0.tar.xz |
(svn r17800) -Codechange: first steps into making CargoList a template
Diffstat (limited to 'src/saveload/afterload.cpp')
-rw-r--r-- | src/saveload/afterload.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index 20f213d75..c08bba5ab 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -1235,8 +1235,8 @@ bool AfterLoadGame() * to the current tile of the vehicle to prevent excessive profits */ FOR_ALL_VEHICLES(v) { - const CargoList::List *packets = v->cargo.Packets(); - for (CargoList::List::const_iterator it = packets->begin(); it != packets->end(); it++) { + const VehicleCargoList::List *packets = v->cargo.Packets(); + for (VehicleCargoList::List::const_iterator 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; @@ -1254,8 +1254,8 @@ bool AfterLoadGame() for (CargoID c = 0; c < NUM_CARGO; c++) { GoodsEntry *ge = &st->goods[c]; - const CargoList::List *packets = ge->cargo.Packets(); - for (CargoList::List::const_iterator it = packets->begin(); it != packets->end(); it++) { + const StationCargoList::List *packets = ge->cargo.Packets(); + for (StationCargoList::List::const_iterator 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; |