(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.
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user