Index: src/industry_cmd.cpp =================================================================== --- src/industry_cmd.cpp (revision 11703) +++ src/industry_cmd.cpp (working copy) @@ -1612,7 +1612,9 @@ * is nothing we can really do about that. */ if (Random() <= indspec->prospecting_chance) { for (int i = 0; i < 5000; i++) { - const Industry *ind = CreateNewIndustryHelper(RandomTile(), p1, flags, indspec, RandomRange(indspec->num_table)); + TileIndex location=RandomTile(); + uint32 itspec_index=RandomRange(indspec->num_table); + const Industry *ind = CreateNewIndustryHelper(location, p1, flags, indspec, itspec_index); if (ind != NULL) { SetDParam(0, indspec->name); if (indspec->new_industry_text > STR_LAST_STRINGID) {