mirror of https://github.com/OpenTTD/OpenTTD
(svn r24224) -Fix [FS#5159]: dereferencing uninitialised pointer (frosch)
parent
c8400c5fd9
commit
d20a28cfb5
|
@ -528,6 +528,7 @@ CommandCost CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uin
|
||||||
ind.town = ClosestTownFromTile(tile, UINT_MAX);
|
ind.town = ClosestTownFromTile(tile, UINT_MAX);
|
||||||
ind.random = initial_random_bits;
|
ind.random = initial_random_bits;
|
||||||
ind.founder = founder;
|
ind.founder = founder;
|
||||||
|
ind.psa = NULL;
|
||||||
|
|
||||||
NewIndustryResolver(&object, tile, &ind, type);
|
NewIndustryResolver(&object, tile, &ind, type);
|
||||||
object.GetVariable = IndustryLocationGetVariable;
|
object.GetVariable = IndustryLocationGetVariable;
|
||||||
|
|
Loading…
Reference in New Issue