summaryrefslogtreecommitdiff
path: root/src/autoreplace_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-10-18 14:28:26 +0000
committerrubidium <rubidium@openttd.org>2009-10-18 14:28:26 +0000
commit138e7233bce5ff5a9d20f54af80f6104303d6ca0 (patch)
tree7defa635be3e9968a2d18b8f106a580f33964de9 /src/autoreplace_cmd.cpp
parentc52a26a73f7fae70811ab3b6bb3599041cee530f (diff)
downloadopenttd-138e7233bce5ff5a9d20f54af80f6104303d6ca0.tar.xz
(svn r17800) -Codechange: first steps into making CargoList a template
Diffstat (limited to 'src/autoreplace_cmd.cpp')
-rw-r--r--src/autoreplace_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp
index ededb4cd6..751175c27 100644
--- a/src/autoreplace_cmd.cpp
+++ b/src/autoreplace_cmd.cpp
@@ -119,7 +119,7 @@ static void TransferCargo(Vehicle *old_veh, Vehicle *new_head, bool part_of_chai
uint amount = min(src->cargo.Count(), dest->cargo_cap - dest->cargo.Count());
if (amount <= 0) continue;
- src->cargo.MoveTo(&dest->cargo, amount, CargoList::MTA_UNLOAD, NULL);
+ src->cargo.MoveTo(&dest->cargo, amount, VehicleCargoList::MTA_UNLOAD, NULL);
}
}