Fix editor exit with error code when game cooking CL fails

#2248
This commit is contained in:
Wojtek Figat
2024-02-21 23:18:09 +01:00
parent f20805e567
commit 318b00c617
5 changed files with 18 additions and 8 deletions

View File

@@ -241,6 +241,8 @@ void Engine::Exit(int32 exitCode)
void Engine::RequestExit(int32 exitCode)
{
if (Globals::IsRequestingExit)
return;
#if USE_EDITOR
// Send to editor (will leave play mode if need to)
if (Editor::Managed->OnAppExit())