Mercurial > hg > openttd
changeset 18872:f3facf7249aa draft
(svn r23721) -Fix (r23070): reading memory of a temporary (already deconstructed) object is invalid
author | yexo <yexo@openttd.org> |
---|---|
date | Mon, 02 Jan 2012 22:58:15 +0000 |
parents | a4694afa59cc |
children | 2b302b40fba9 |
files | src/newgrf_house.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -327,7 +327,8 @@ int8 y_offs = GB(GetRegister(0x100), 8, 8); TileIndex testtile = TILE_MASK(tile + TileDiffXY(x_offs, y_offs)); - const StationList *sl = StationFinder(TileArea(testtile, 1, 1)).GetStations(); + StationFinder stations(TileArea(testtile, 1, 1)); + const StationList *sl = stations.GetStations(); /* Collect acceptance stats. */ uint32 res = 0;