1
0
Fork 0

(svn r7594) -Fix (r7522): GRF config list wasn't cleared when no GRFs should be used.

release/0.6
peter1138 2006-12-28 16:11:07 +00:00
parent e9e4ba8222
commit 822646b9a9
1 changed files with 6 additions and 1 deletions

View File

@ -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);
}