mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 21:33:51 +00:00
(svn r18707) -Fix (r17802): local variables should not be accessed after the function returns
This commit is contained in:
parent
33e48c63b8
commit
9e2ccca327
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user