소스 검색

Add missing NULL check for the new show_about() call

Marcelo Fernandez 8 년 전
부모
커밋
1b6c9f7076
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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