Fix code #3511
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user