1
0
Fork 0

(svn r17470) -Fix (r17460): possible crash when overbuiling rail by station

release/1.0
smatz 2009-09-08 07:16:26 +00:00
parent f40885ec50
commit 8cbcf17421
1 changed files with 1 additions and 1 deletions

View File

@ -727,7 +727,7 @@ CommandCost CheckFlatLandBelow(TileIndex tile, uint w, uint h, DoCommandFlag fla
* build isn't a rail station it's INVALID_RAILTYPE. */
if (rt != INVALID_RAILTYPE &&
IsPlainRailTile(tile_cur) && !HasSignals(tile_cur) &&
HasPowerOnRail(GetRailType(tile), rt)) {
HasPowerOnRail(GetRailType(tile_cur), rt)) {
/* Allow overbuilding if the tile:
* - has rail, but no signals
* - it has exactly one track