소스 검색

Merge pull request #100738 from beicause/fix-crash-one-click-deploy

Fix crash when using one-click deploy
Thaddeus Crews 8 달 전
부모
커밋
01a7c81e02
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      editor/editor_run.cpp

+ 3 - 0
editor/editor_run.cpp

@@ -285,6 +285,9 @@ void EditorRun::stop() {
 }
 
 OS::ProcessID EditorRun::get_current_process() const {
+	if (pids.front() == nullptr) {
+		return 0;
+	}
 	return pids.front()->get();
 }