summaryrefslogtreecommitdiff
path: root/src/ai/api
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-04-17 23:34:00 +0000
committerfrosch <frosch@openttd.org>2010-04-17 23:34:00 +0000
commit893e405af09ed97261ff25de195b4bd6825bc8f6 (patch)
tree1283fa279036d508db85e7b698547816813be176 /src/ai/api
parent1647c2d50e1dfeb05507ddfb2b661896e72670ae (diff)
downloadopenttd-893e405af09ed97261ff25de195b4bd6825bc8f6.tar.xz
(svn r19668) -Codechange: Use WaterClass in parameters of CMD_BUILD_CANAL.
Diffstat (limited to 'src/ai/api')
-rw-r--r--src/ai/api/ai_marine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_marine.cpp b/src/ai/api/ai_marine.cpp
index 07de889da..0e2e26a8a 100644
--- a/src/ai/api/ai_marine.cpp
+++ b/src/ai/api/ai_marine.cpp
@@ -108,7 +108,7 @@
{
EnforcePrecondition(false, ::IsValidTile(tile));
- return AIObject::DoCommand(tile, tile, 0, CMD_BUILD_CANAL);
+ return AIObject::DoCommand(tile, tile, WATER_CLASS_CANAL, CMD_BUILD_CANAL);
}
/* static */ bool AIMarine::RemoveWaterDepot(TileIndex tile)