summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-08-23 00:07:02 +0200
committerGitHub <noreply@github.com>2017-08-23 00:07:02 +0200
commiteb238a04dacae397db393cbce74891cf90405a67 (patch)
tree2ea0eab9ba1be6e080c971ccd7e0117bf90842cc /scene
parentbc3c9a3c2aea7a4781f1319d05056ad8db19178e (diff)
parent1b6c9f707678fb37538393c7f7f1743b16f45a11 (diff)
Merge pull request #10556 from marcelofg55/master
Add missing NULL check for the new show_about() call
Diffstat (limited to 'scene')
-rw-r--r--scene/main/scene_tree.cpp2
1 files changed, 1 insertions, 1 deletions
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