Check if autoload nodes are != NULL before deleting them.

This fixes #27854

(cherry picked from commit 0716c59f14)
This commit is contained in:
Marcus Brummer 2019-06-24 16:00:54 +02:00 committed by Rémi Verschelde
parent 7a9eb587fd
commit aa08c7c418
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}