diff options
author | yexo <yexo@openttd.org> | 2010-01-03 22:43:12 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-03 22:43:12 +0000 |
commit | 9e2ccca327b309da98217e92f133619a30cc4038 (patch) | |
tree | c936c32f4d9459941352d9dbcf4eea13fe7bd48d /src | |
parent | 33e48c63b861fab002e72f81f0987dfeebe664d0 (diff) | |
download | openttd-9e2ccca327b309da98217e92f133619a30cc4038.tar.xz |
(svn r18707) -Fix (r17802): local variables should not be accessed after the function returns
Diffstat (limited to 'src')
-rw-r--r-- | src/industry_gui.cpp | 2 |
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 */ |