浏览代码

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();
 }