various fixes and memory corruption bug.

This commit is contained in:
Jeff Hutchinson 2021-09-09 19:30:32 -04:00
parent 27a4868b6e
commit 35b33f1864
4 changed files with 35 additions and 8 deletions

View file

@ -2971,7 +2971,8 @@ DefineEngineStringlyVariadicMethod( SimObject, call, const char*, 3, 0, "( strin
"@param args Zero or more arguments for the method.\n"
"@return The result of the method call." )
{
argv[1].setString(argv[2]);
argv[1].setString(argv[2].getString());
ConsoleValue returnValue = Con::execute(object, argc - 1, argv + 1);
return Con::getReturnBuffer(returnValue.getString());
}