aboutsummaryrefslogtreecommitdiff
path: root/scene/main/node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/main/node.cpp')
-rw-r--r--scene/main/node.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index 2b2a188e7..f5252cf44 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -802,6 +802,7 @@ void Node::remove_child(Node *p_child) {
}
ERR_FAIL_COND( idx==-1 );
+ ERR_FAIL_COND( p_child->data.blocked > 0 );
//if (data.scene) { does not matter