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

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