From 32bc73610fe4d40071c681d1d36128b798d9401e Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 22 May 2025 04:45:12 +0200 Subject: [PATCH] Fix debug command type detection when it's used with argument --- Source/Engine/Debug/DebugCommands.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Engine/Debug/DebugCommands.cpp b/Source/Engine/Debug/DebugCommands.cpp index 5d94cf557..fcea938aa 100644 --- a/Source/Engine/Debug/DebugCommands.cpp +++ b/Source/Engine/Debug/DebugCommands.cpp @@ -438,6 +438,8 @@ void DebugCommands::InitAsync() DebugCommands::CommandFlags DebugCommands::GetCommandFlags(StringView command) { CommandFlags result = CommandFlags::None; + if (command.FindLast(' ') != -1) + command = command.Left(command.Find(' ')); // TODO: fix missing string handle on 1st command execution (command gets invalid after InitCommands due to dotnet GC or dotnet interop handles flush) String commandCopy = command; command = commandCopy;