From b14c94867a121a5c6b9b69340953368aee8a8876 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 29 Oct 2007 23:02:31 +0000 Subject: (svn r11355) -Fix [FS#1377]: loading too many GRFs was not handled gracefully causing crashes and such. --- src/newgrf_config.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/newgrf_config.cpp') 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; -- cgit v1.2.3-54-g00ecf