diff --git a/src/math/FGPropertyValue.cpp b/src/math/FGPropertyValue.cpp index 7e60c33789..cef989f510 100644 --- a/src/math/FGPropertyValue.cpp +++ b/src/math/FGPropertyValue.cpp @@ -49,8 +49,12 @@ FGPropertyValue::FGPropertyValue(const std::string& propName, Sign = -1.0; } - if (PropertyManager->HasNode(PropertyName)) + if (PropertyManager->HasNode(PropertyName)) { PropertyNode = PropertyManager->GetNode(PropertyName); + + assert(PropertyNode); + XML_def = nullptr; // Now that the property is bound, we no longer need that. + } } //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%