(svn r18707) -Fix (r17802): local variables should not be accessed after the function returns

This commit is contained in:
yexo 2010-01-03 22:43:12 +00:00
parent 33e48c63b8
commit 9e2ccca327
1 changed files with 1 additions and 1 deletions

View File

@ -992,7 +992,7 @@ protected:
/* Industry name */
SetDParam(p++, i->index);
char cargo_suffix[lengthof(i->produced_cargo)][512];
static char cargo_suffix[lengthof(i->produced_cargo)][512];
GetAllCargoSuffixes(3, CST_DIR, i, i->type, indsp, i->produced_cargo, cargo_suffix);
/* Industry productions */