summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2017-01-07 21:18:17 +0000
committerfrosch <frosch@openttd.org>2017-01-07 21:18:17 +0000
commitb6b02108f7c09f1c9d64171eab90f9b6528ae243 (patch)
tree0db7ec8f950cd205f83e83d9a5759e71c312bdda /src
parentb2b5079fc7132c76ee4e6b3782255ba5551d005d (diff)
downloadopenttd-b6b02108f7c09f1c9d64171eab90f9b6528ae243.tar.xz
(svn r27721) -Fix: Testing GRFs for static-safety (when reloading the config) invalidated file slot 62, which may be in use by an active GRF.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_config.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp
index 19ac4d4a7..5e3d29439 100644
--- a/src/newgrf_config.cpp
+++ b/src/newgrf_config.cpp
@@ -425,7 +425,7 @@ bool FillGRFDetails(GRFConfig *config, bool is_static, Subdirectory subdir)
if (is_static) {
/* Perform a 'safety scan' for static GRFs */
- LoadNewGRFFile(config, 62, GLS_SAFETYSCAN, subdir);
+ LoadNewGRFFile(config, CONFIG_SLOT, GLS_SAFETYSCAN, subdir);
/* GCF_UNSAFE is set if GLS_SAFETYSCAN finds unsafe actions */
if (HasBit(config->flags, GCF_UNSAFE)) return false;