mirror of https://github.com/OpenTTD/OpenTTD
(svn r16967) -Fix [FS#0356]: assert when UFO tried to destroy rail
parent
2ec12a3f58
commit
b76cad419e
|
@ -62,7 +62,7 @@ static void DisasterClearSquare(TileIndex tile)
|
|||
|
||||
switch (GetTileType(tile)) {
|
||||
case MP_RAILWAY:
|
||||
if (Company::IsHumanID(GetTileOwner(tile)) && !IsRailWaypoint(tile)) {
|
||||
if (Company::IsHumanID(GetTileOwner(tile))) {
|
||||
CompanyID old_company = _current_company;
|
||||
_current_company = OWNER_WATER;
|
||||
DoCommand(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR);
|
||||
|
|
Loading…
Reference in New Issue