diff options
author | yexo <yexo@openttd.org> | 2009-03-28 16:19:04 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-03-28 16:19:04 +0000 |
commit | 50a6e589eda43618a53a1ad29d17209863cd52aa (patch) | |
tree | e9109c36779f5432dfde4a3699eb99b6acf164b3 | |
parent | bf354564ce1e493f7d9b8831963deda9eb68e9a9 (diff) | |
download | openttd-50a6e589eda43618a53a1ad29d17209863cd52aa.tar.xz |
(svn r15881) -Fix (r15875): add an explicit cast so some compilers stop complaining.
-rw-r--r-- | src/ai/api/ai_bridge.cpp | 2 |
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); } |