summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2012-05-11 20:42:22 +0000
committerrubidium <rubidium@openttd.org>2012-05-11 20:42:22 +0000
commitd20a28cfb5cdc37ac935f3d0f533ee836214b2f9 (patch)
treea8b2ed1d0147b55a2c18de6a9c17185e594b3657 /src/newgrf_industries.cpp
parentc8400c5fd9aef3f07b23adfe7357c6bd9f9f933a (diff)
downloadopenttd-d20a28cfb5cdc37ac935f3d0f533ee836214b2f9.tar.xz
(svn r24224) -Fix [FS#5159]: dereferencing uninitialised pointer (frosch)
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r--src/newgrf_industries.cpp1
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;