src/GUI/Highlight.cxx: fixed bug in ::bind() that causes crash on startup.
We need to create sim/highlighting/enabled if it doesn't already exist.
This commit is contained in:
parent
5536dce0fd
commit
96dee79873
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ struct FdmInitialisedListener : SGPropertyChangeListener
|
|||
|
||||
void Highlight::bind()
|
||||
{
|
||||
s_prop_enabled = globals->get_props()->getNode("sim/highlighting/enabled");
|
||||
s_prop_enabled = globals->get_props()->getNode("sim/highlighting/enabled", true);
|
||||
globals->get_props()->setStringValue("sim/highlighting/current", "");
|
||||
globals->get_props()->setStringValue("sim/highlighting/current-ptr", "/sim/highlighting/current");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue