diff --git a/Engine/source/core/util/treeObject.h b/Engine/source/core/util/treeObject.h index 7d3099be4..0fde074a3 100644 --- a/Engine/source/core/util/treeObject.h +++ b/Engine/source/core/util/treeObject.h @@ -53,7 +53,7 @@ public: { if (parent) parent->remove(this); parent = p; - parent->push_back(this); + if (parent) parent->push_back(this); } //children logic