mirror of
https://github.com/godotengine/godot.git
synced 2025-01-30 21:33:18 +08:00
Merge pull request #30035 from mbrlabs/autoload-fix
Check if autoload nodes are != NULL before deleting them
This commit is contained in:
commit
368b34482c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user