Преглед на файлове

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