Merge pull request #3361 from aws-lumberyard-dev/cgalvan/FixConsoleVarsCrash

Fixed console variables crash.
monroegm-disable-blank-issue-2
Chris Galvan 5 years ago committed by GitHub
commit 30e46cc377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3133,6 +3133,9 @@ char* CXConsole::GetCheatVarAt(uint32 nOffset)
//////////////////////////////////////////////////////////////////////////
size_t CXConsole::GetSortedVars(AZStd::vector<AZStd::string_view>& pszArray, const char* szPrefix)
{
// This method used to insert instead of push_back, so we need to clear first
pszArray.clear();
size_t iPrefixLen = szPrefix ? strlen(szPrefix) : 0;
// variables

Loading…
Cancel
Save