Check if autoload nodes are != NULL before deleting them.
This fixes #27854
This commit is contained in:
parent
25022a1d89
commit
0716c59f14
1 changed files with 1 additions and 1 deletions
|
@ -789,7 +789,7 @@ EditorAutoloadSettings::EditorAutoloadSettings() {
|
|||
}
|
||||
}
|
||||
|
||||
if (!info.is_singleton && !info.in_editor) {
|
||||
if (!info.is_singleton && !info.in_editor && info.node != NULL) {
|
||||
memdelete(info.node);
|
||||
info.node = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue