summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--water_map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/water_map.h b/water_map.h
index d5dcdd5f1..9d63b0b5e 100644
--- a/water_map.h
+++ b/water_map.h
@@ -28,9 +28,9 @@ static inline WaterTileType GetWaterTileType(TileIndex t)
if (_m[t].m5 == 0) return WATER_CLEAR;
if (_m[t].m5 == 1) return WATER_COAST;
if (IS_INT_INSIDE(_m[t].m5, LOCK_MIDDLE, LOCK_END)) return WATER_LOCK;
- if (IS_INT_INSIDE(_m[t].m5, DEPOT_NORTH, DEPOT_END)) return WATER_DEPOT;
- assert(0);
+ assert(IS_INT_INSIDE(_m[t].m5, DEPOT_NORTH, DEPOT_END));
+ return WATER_DEPOT;
}
static inline bool IsWater(TileIndex t)