summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-01-03 22:43:12 +0000
committeryexo <yexo@openttd.org>2010-01-03 22:43:12 +0000
commit9e2ccca327b309da98217e92f133619a30cc4038 (patch)
treec936c32f4d9459941352d9dbcf4eea13fe7bd48d
parent33e48c63b861fab002e72f81f0987dfeebe664d0 (diff)
downloadopenttd-9e2ccca327b309da98217e92f133619a30cc4038.tar.xz
(svn r18707) -Fix (r17802): local variables should not be accessed after the function returns
-rw-r--r--src/industry_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index 2c0e98b1f..e7cd41884 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -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 */