1
0
Fork 0

Reset: persist USERARCHIVE settings

Save user-setting properties to disk before beginning a reset, so
they are restored correctly.
This commit is contained in:
James Turner 2018-09-01 19:21:47 +01:00
parent 09fdfe358c
commit 525cfadfa3

View file

@ -1115,6 +1115,11 @@ void fgStartReposition()
void fgStartNewReset()
{
// save user settings now, so that USERARCIVE-d values changes since the
// last init are recorded and hence re-loaded when we fgInitConfig down
// later in this function. Otherwise all such settings are lost.
globals->saveUserSettings();
SGPropertyNode_ptr preserved(new SGPropertyNode);
if (!copyPropertiesWithAttribute(globals->get_props(), preserved, SGPropertyNode::PRESERVE))