From b161eea49c1b64b1456d0c5335e2f8fa150afb32 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