Avoid spurious error messages when the property is already untied.
This commit is contained in:
parent
8d4bd24235
commit
a49f865515
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue