Check if autoload nodes are != NULL before deleting them.
This fixes #27854
(cherry picked from commit 0716c59f14
)
This commit is contained in:
parent
7a9eb587fd
commit
aa08c7c418
|
@ -772,7 +772,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 New Issue