Mercurial > hg > openttd
changeset 12976:29cdbe2ed4bc draft
(svn r17470) -Fix (r17460): possible crash when overbuiling rail by station
author | smatz <smatz@openttd.org> |
---|---|
date | Tue, 08 Sep 2009 07:16:26 +0000 |
parents | dcff0ff964ae |
children | 45ddb1d44728 |
files | src/station_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -727,7 +727,7 @@ * 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