From 822646b9a90c12b49fa9e38558b6b6d6ac01df84 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 28 Dec 2006 16:11:07 +0000 Subject: (svn r7594) -Fix (r7522): GRF config list wasn't cleared when no GRFs should be used. --- newgrf_config.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/newgrf_config.c b/newgrf_config.c index 421333ba8..9cea7c49d 100644 --- a/newgrf_config.c +++ b/newgrf_config.c @@ -181,7 +181,12 @@ void ResetGRFConfig(bool defaults) { GRFConfig **c = &_grfconfig; - if (defaults) c = CopyGRFConfigList(c, _grfconfig_newgame); + if (defaults) { + c = CopyGRFConfigList(c, _grfconfig_newgame); + } else { + ClearGRFConfigList(c); + } + AppendStaticGRFConfigs(&_grfconfig); } -- cgit v1.2.3-70-g09d2