Merge pull request #35543 from timothyqiu/notification-crash

Fixes crash in Spatial::notification
This commit is contained in:
Rémi Verschelde 2020-01-25 09:59:37 +01:00 committed by GitHub
commit f67814116a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,6 +125,7 @@ void Spatial::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_ENTER_TREE: {
ERR_FAIL_COND(!get_tree());
Node *p = get_parent();
if (p)