diff --git a/src/GUI/Highlight.cxx b/src/GUI/Highlight.cxx index 1dae140d8..5512acab6 100644 --- a/src/GUI/Highlight.cxx +++ b/src/GUI/Highlight.cxx @@ -347,7 +347,7 @@ struct FdmInitialisedListener : SGPropertyChangeListener } ~FdmInitialisedListener() { - globals->get_props()->getNode("sim/fdm-initialized")->removeChangeListener(this); + m_fdm_initialised->removeChangeListener(this); } SGPropertyNode_ptr m_fdm_initialised; };