summaryrefslogtreecommitdiff
path: root/src/unmovable_cmd.cpp
diff options
context:
space:
mode:
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));