From 9e2ccca327b309da98217e92f133619a30cc4038 Mon Sep 17 00:00:00 2001 From: yexo Date: Sun, 3 Jan 2010 22:43:12 +0000 Subject: (svn r18707) -Fix (r17802): local variables should not be accessed after the function returns --- src/industry_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 */ -- cgit v1.2.3-70-g09d2