Kaynağa Gözat

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

This fixes #27854

(cherry picked from commit 0716c59f14383343c1761bc2e0327ebdb2d35d2d)
Marcus Brummer 6 yıl önce
ebeveyn
işleme
aa08c7c418
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      editor/editor_autoload_settings.cpp

+ 1 - 1
editor/editor_autoload_settings.cpp

@@ -772,7 +772,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;
 		}