From 1b6c9f707678fb37538393c7f7f1743b16f45a11 Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Tue, 22 Aug 2017 14:10:36 -0300 Subject: Add missing NULL check for the new show_about() call --- scene/main/scene_tree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp index 00460e9eda..10ab28150b 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -630,7 +630,7 @@ void SceneTree::_notification(int p_notification) { case NOTIFICATION_WM_ABOUT: { #ifdef TOOLS_ENABLED - if (Engine::get_singleton()->is_editor_hint()) { + if (EditorNode::get_singleton()) { EditorNode::get_singleton()->show_about(); } else { #endif -- cgit v1.2.3