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

This fixes #27854
This commit is contained in:
Marcus Brummer 2019-06-24 16:00:54 +02:00
parent 25022a1d89
commit 0716c59f14

View file

@ -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); memdelete(info.node);
info.node = NULL; info.node = NULL;
} }