diff options
author | yexo <yexo@openttd.org> | 2009-02-25 21:50:54 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-02-25 21:50:54 +0000 |
commit | 894d61ca470f27b3e6a55dda73c6bd78fbf25091 (patch) | |
tree | bfb79ccd128fd6dc82c35c17f2dc26c87fd8939e /src/unmovable_cmd.cpp | |
parent | b8601d903d5911c12a67fb60b76902ba165c2d04 (diff) | |
download | openttd-894d61ca470f27b3e6a55dda73c6bd78fbf25091.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.cpp | 2 |
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)); |