From 61ccc683825f76f9a12be1ad6b8b2000d88283d3 Mon Sep 17 00:00:00 2001 From: celestar Date: Mon, 3 Apr 2006 10:31:02 +0000 Subject: [PATCH] (svn r4251) -Fix: Silence a warning in GetWaterTileType --- water_map.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/water_map.h b/water_map.h index d5dcdd5f13..9d63b0b5ea 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)