Merge pull request #30035 from mbrlabs/autoload-fix

Check if autoload nodes are != NULL before deleting them
This commit is contained in:
Rémi Verschelde 2019-06-24 18:32:53 +02:00 committed by GitHub
commit 368b34482c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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