(svn r24224) -Fix [FS#5159]: dereferencing uninitialised pointer (frosch)

This commit is contained in:
rubidium
2012-05-11 20:42:22 +00:00
parent 4e1c993fdd
commit 3a32f1f3b9

View File

@@ -528,6 +528,7 @@ CommandCost CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uin
ind.town = ClosestTownFromTile(tile, UINT_MAX);
ind.random = initial_random_bits;
ind.founder = founder;
ind.psa = NULL;
NewIndustryResolver(&object, tile, &ind, type);
object.GetVariable = IndustryLocationGetVariable;