1
0
Fork 0

Avoid spurious error messages when the property is already untied.

This commit is contained in:
Bertrand Coconnier 2021-12-18 17:32:59 +01:00
parent 8d4bd24235
commit a49f865515

View file

@ -394,7 +394,9 @@ FGTable::~FGTable()
// instance of FGTable after the destruction is completed.
if (!Name.empty() && !internal) {
string tmp = mkPropertyName(nullptr, "");
PropertyManager->Untie(tmp);
FGPropertyNode* node = PropertyManager->GetNode(tmp);
if (node->isTied())
PropertyManager->Untie(tmp);
}
if (nTables > 0) {