You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Check if autoload nodes are != NULL before deleting them.
This fixes #27854
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user