Fixes crash in Spatial::notification
This commit is contained in:
parent
e61edd69ea
commit
df3fad11fd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue