mirror of https://github.com/OpenTTD/OpenTTD
(svn r23721) -Fix (r23070): reading memory of a temporary (already deconstructed) object is invalid
parent
d2f776ef3e
commit
c4e2dfdd89
|
@ -327,7 +327,8 @@ static uint32 HouseGetVariable(const ResolverObject *object, byte variable, uint
|
||||||
int8 y_offs = GB(GetRegister(0x100), 8, 8);
|
int8 y_offs = GB(GetRegister(0x100), 8, 8);
|
||||||
TileIndex testtile = TILE_MASK(tile + TileDiffXY(x_offs, y_offs));
|
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. */
|
/* Collect acceptance stats. */
|
||||||
uint32 res = 0;
|
uint32 res = 0;
|
||||||
|
|
Loading…
Reference in New Issue