forked from mirror/OpenTTD
(svn r7594) -Fix (r7522): GRF config list wasn't cleared when no GRFs should be used.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user