mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 17:39:09 +00:00
(svn r4266) - Fix: compile warning on VS2005 (not all control paths return a value)
This commit is contained in:
@@ -318,7 +318,10 @@ static int32 ClearTile_Water(TileIndex tile, byte flags)
|
|||||||
if (flags & DC_AUTO) return_cmd_error(STR_2004_BUILDING_MUST_BE_DEMOLISHED);
|
if (flags & DC_AUTO) return_cmd_error(STR_2004_BUILDING_MUST_BE_DEMOLISHED);
|
||||||
|
|
||||||
return RemoveShipDepot(tile, flags);
|
return RemoveShipDepot(tile, flags);
|
||||||
|
default: NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 0; // useless but silences warning
|
||||||
}
|
}
|
||||||
|
|
||||||
// return true if a tile is a water tile.
|
// return true if a tile is a water tile.
|
||||||
|
Reference in New Issue
Block a user