소스 검색

Fix crash on editor startup when running with platform=server

Josh Faust 7 년 전
부모
커밋
4e58db9f12
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      editor/doc/doc_data.cpp

+ 3 - 0
editor/doc/doc_data.cpp

@@ -567,6 +567,9 @@ void DocData::generate(bool p_basic_types) {
 
 			PropertyDoc pd;
 			Engine::Singleton &s = E->get();
+			if (!s.ptr) {
+				continue;
+			}
 			pd.name = s.name;
 			pd.type = s.ptr->get_class();
 			while (String(ClassDB::get_parent_class(pd.type)) != "Object")