From 8cbcf17421a841696185db6318f2ed44ede9031c Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 8 Sep 2009 07:16:26 +0000 Subject: (svn r17470) -Fix (r17460): possible crash when overbuiling rail by station --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index c8ad6c66d..c7a91ef23 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -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 -- cgit v1.2.3-54-g00ecf