- // Our StateInfo st is about going out of scope,
- // so save its content before they disappear.
- RootPosition.setStartState(st);
+ // Our StateInfo st is about going out of scope so copy
+ // its content inside RootPosition before they disappear.
+ RootPosition.saveState();