Fix cec55e67: Assert on using road convert tool on non-station tile

This commit is contained in:
Jonathan G Rennison
2020-08-27 01:35:13 +01:00
parent 810bfd276e
commit e4581b4cd8

View File

@@ -2619,7 +2619,7 @@ CommandCost CmdConvertRoad(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
}
uint num_pieces;
if (IsRoadDepotTile(tile) || IsRoadStop(tile)) {
if (IsRoadDepotTile(tile) || IsRoadStopTile(tile)) {
num_pieces = HasTileRoadType(tile, rtt) ? 2 : 0;
} else {
num_pieces = CountBits(GetAnyRoadBits(tile, rtt));