From 0716c59f14383343c1761bc2e0327ebdb2d35d2d Mon Sep 17 00:00:00 2001 From: Marcus Brummer Date: Mon, 24 Jun 2019 16:00:54 +0200 Subject: [PATCH] Check if autoload nodes are != NULL before deleting them. This fixes #27854 --- editor/editor_autoload_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_autoload_settings.cpp b/editor/editor_autoload_settings.cpp index 913eb35f8ae..9f0b4250a3d 100644 --- a/editor/editor_autoload_settings.cpp +++ b/editor/editor_autoload_settings.cpp @@ -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; }