diff options
author | rubidium <rubidium@openttd.org> | 2012-05-11 20:42:22 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2012-05-11 20:42:22 +0000 |
commit | d20a28cfb5cdc37ac935f3d0f533ee836214b2f9 (patch) | |
tree | a8b2ed1d0147b55a2c18de6a9c17185e594b3657 | |
parent | c8400c5fd9aef3f07b23adfe7357c6bd9f9f933a (diff) | |
download | openttd-d20a28cfb5cdc37ac935f3d0f533ee836214b2f9.tar.xz |
(svn r24224) -Fix [FS#5159]: dereferencing uninitialised pointer (frosch)
-rw-r--r-- | src/newgrf_industries.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index a5b1984be..c0e4d6526 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -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; |