Merge pull request #31182 from mitchcurtis/remove_child

Improve error message in Node::remove_child()
This commit is contained in:
Rémi Verschelde 2019-08-08 11:20:50 +02:00 committed by GitHub
commit f0ad034a1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1265,6 +1265,7 @@ void Node::remove_child(Node *p_child) {
} }
} }
ERR_EXPLAIN("Cannot remove child node " + p_child->to_string() + " as it is not in our list of children");
ERR_FAIL_COND(idx == -1); ERR_FAIL_COND(idx == -1);
//ERR_FAIL_COND( p_child->data.blocked > 0 ); //ERR_FAIL_COND( p_child->data.blocked > 0 );