Merge pull request #2235 from CouleeApps/fix-dump-console

Fix dumpConsoleClasses / dumpConsoleFunctions
This commit is contained in:
Areloch 2018-04-30 22:52:30 -05:00 committed by GitHub
commit 7c74acfa1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -698,10 +698,10 @@ String CodeBlock::getFunctionArgs(U32 ip)
{
StringBuilder str;
U32 fnArgc = code[ip + 5];
U32 fnArgc = code[ip + 8];
for (U32 i = 0; i < fnArgc; ++i)
{
StringTableEntry var = CodeToSTE(code, ip + (i * 2) + 6);
StringTableEntry var = CodeToSTE(code, ip + (i * 2) + 9);
if (i != 0)
str.append(", ");

View file

@ -88,7 +88,7 @@ void printClassHeader(const char* usage, const char * className, const char * su
if((usage != NULL) && strlen(usage))
{
// Copy Usage Document
S32 usageLen = dStrlen( usage );
S32 usageLen = dStrlen( usage ) + 1;
FrameTemp<char> usageStr( usageLen );
dStrcpy( usageStr, usage, usageLen );