Browse Source

CodeBlock::getFunctionArgs used the wrong offsets

Glenn Smith 7 years ago
parent
commit
b486ab73bd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Engine/source/console/codeBlock.cpp

+ 2 - 2
Engine/source/console/codeBlock.cpp

@@ -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(", ");