From 0175c109acbf4ff892b2d895a4f2b015bf3b8715 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Tue, 27 Jan 2026 00:32:12 -0600 Subject: [PATCH] safety --- Engine/source/core/util/treeObject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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