Changeset - r18862:80d0a0322356
[Not reviewed]
master
0 1 0
yexo - 12 years ago 2012-01-02 22:58:15
yexo@openttd.org
(svn r23721) -Fix (r23070): reading memory of a temporary (already deconstructed) object is invalid
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_house.cpp
Show inline comments
 
@@ -327,7 +327,8 @@ static uint32 HouseGetVariable(const Res
 
			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;
0 comments (0 inline, 0 general)