runtime fixes (Editor running)

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-05 19:31:12 -07:00
parent 6d79f1beee
commit 4358b6eb27
10 changed files with 55 additions and 109 deletions
@@ -446,10 +446,10 @@ bool SRemoteClient::SendPackage(const char* buffer, int size)
/////////////////////////////////////////////////////////////////////////////////////////////
void SRemoteClient::FillAutoCompleteList(AZStd::vector<AZStd::string>& list)
{
AZStd::vector<const char*> cmds;
size_t count = gEnv->pConsole->GetSortedVars(nullptr, 0);
AZStd::vector<AZStd::string_view> cmds;
size_t count = gEnv->pConsole->GetSortedVars(cmds);
cmds.resize(count);
count = gEnv->pConsole->GetSortedVars(&cmds[0], count);
count = gEnv->pConsole->GetSortedVars(cmds);
for (size_t i = 0; i < count; ++i)
{
list.push_back(cmds[i]);