(svn r11355) -Fix [FS#1377]: loading too many GRFs was not handled gracefully causing crashes and such.

This commit is contained in:
rubidium
2007-10-29 23:02:31 +00:00
parent 840de103d1
commit 3722b834ef
7 changed files with 45 additions and 18 deletions

View File

@@ -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;