summaryrefslogtreecommitdiff
path: root/src/unmovable_cmd.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-02-25 21:50:54 +0000
committeryexo <yexo@openttd.org>2009-02-25 21:50:54 +0000
commita0c4f1156aa5fcd503d976c102db89b5a683b81a (patch)
treebfb79ccd128fd6dc82c35c17f2dc26c87fd8939e /src/unmovable_cmd.cpp
parentfb7b0536e74d0cfdc682593657dfb66700f724e9 (diff)
downloadopenttd-a0c4f1156aa5fcd503d976c102db89b5a683b81a.tar.xz
(svn r15585) -Codechange: Remove TILE_ASSERT and replace all instances with assert(tile < MapSize()).
Diffstat (limited to 'src/unmovable_cmd.cpp')
-rw-r--r--src/unmovable_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp
index a3f5b5117..b76a3e017 100644
--- a/src/unmovable_cmd.cpp
+++ b/src/unmovable_cmd.cpp
@@ -452,7 +452,7 @@ void GenerateUnmovables()
MakeLighthouse(tile);
IncreaseGeneratingWorldProgress(GWP_UNMOVABLE);
lighthouses_to_build--;
- TILE_ASSERT(tile);
+ assert(tile < MapSize());
break;
}
tile = AddTileIndexDiffCWrap(tile, TileIndexDiffCByDiagDir(dir));