From 3a32f1f3b9cfa26f531e9cf5f4f5fa277bff5494 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 11 May 2012 20:42:22 +0000 Subject: [PATCH] (svn r24224) -Fix [FS#5159]: dereferencing uninitialised pointer (frosch) --- src/newgrf_industries.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index a5b1984be9..c0e4d65269 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;