diff options
author | rubidium <rubidium@openttd.org> | 2007-10-29 23:02:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-10-29 23:02:31 +0000 |
commit | b14c94867a121a5c6b9b69340953368aee8a8876 (patch) | |
tree | f4608f438da95909157f41aa78f5a878e7152382 /src/newgrf_config.cpp | |
parent | 24956ab71ba1dd9ed1734ae262229f098662b275 (diff) | |
download | openttd-b14c94867a121a5c6b9b69340953368aee8a8876.tar.xz |
(svn r11355) -Fix [FS#1377]: loading too many GRFs was not handled gracefully causing crashes and such.
Diffstat (limited to 'src/newgrf_config.cpp')
-rw-r--r-- | src/newgrf_config.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp index f09a571fc..169da02b7 100644 --- a/src/newgrf_config.cpp +++ b/src/newgrf_config.cpp @@ -66,9 +66,7 @@ bool FillGRFDetails(GRFConfig *config, bool is_static) } /* Find and load the Action 8 information */ - /* 62 is the last file slot before sample.cat. - * Should perhaps be some "don't care" value */ - LoadNewGRFFile(config, 62, GLS_FILESCAN); + LoadNewGRFFile(config, CONFIG_SLOT, GLS_FILESCAN); /* Skip if the grfid is 0 (not read) or 0xFFFFFFFF (ttdp system grf) */ if (config->grfid == 0 || config->grfid == 0xFFFFFFFF) return false; |