This commit is contained in:
Wojtek Figat
2025-09-22 22:31:23 +02:00
parent 50271199ac
commit 70ba750a5e
2 changed files with 2 additions and 5 deletions

View File

@@ -439,11 +439,8 @@ void DebugCommands::GetAllCommands(Array<StringView>& commands)
{
EnsureInited();
ScopeLock lock(Locker);
for (auto& command : Commands)
{
for (const auto& command : Commands)
commands.Add(command.Name);
}
}
DebugCommands::CommandFlags DebugCommands::GetCommandFlags(StringView command)

View File

@@ -49,7 +49,7 @@ public:
/// <summary>
/// Gets all available commands.
/// </summary>
/// <param name="matches">The output list of all commands (unsorted).</param>
/// <param name="commands">The output list of all commands (unsorted).</param>
API_FUNCTION() static void GetAllCommands(API_PARAM(Out) Array<StringView, HeapAllocation>& commands);
/// <summary>