1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-30 16:26:50 +00:00

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

Fix crash when using one-click deploy
This commit is contained in:
Thaddeus Crews
2024-12-23 11:15:11 -06:00

View File

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