Browse Source

Merge pull request #10556 from marcelofg55/master

Add missing NULL check for the new show_about() call
Rémi Verschelde 8 years ago
parent
commit
eb238a04da
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/main/scene_tree.cpp

+ 1 - 1
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