summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-03-28 16:19:04 +0000
committeryexo <yexo@openttd.org>2009-03-28 16:19:04 +0000
commit50a6e589eda43618a53a1ad29d17209863cd52aa (patch)
treee9109c36779f5432dfde4a3699eb99b6acf164b3 /src/ai
parentbf354564ce1e493f7d9b8831963deda9eb68e9a9 (diff)
downloadopenttd-50a6e589eda43618a53a1ad29d17209863cd52aa.tar.xz
(svn r15881) -Fix (r15875): add an explicit cast so some compilers stop complaining.
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/api/ai_bridge.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_bridge.cpp b/src/ai/api/ai_bridge.cpp
index 4e7d51776..5f28ff51c 100644
--- a/src/ai/api/ai_bridge.cpp
+++ b/src/ai/api/ai_bridge.cpp
@@ -25,7 +25,7 @@
/* static */ BridgeID AIBridge::GetBridgeID(TileIndex tile)
{
- if (!IsBridgeTile(tile)) return -1;
+ if (!IsBridgeTile(tile)) return (BridgeID)-1;
return (BridgeID)::GetBridgeType(tile);
}