CodeBlock::getFunctionArgs used the wrong offsets

This commit is contained in:
Glenn Smith 2018-03-30 02:28:04 -04:00
parent 0ebd75604d
commit b486ab73bd

View file

@ -698,10 +698,10 @@ String CodeBlock::getFunctionArgs(U32 ip)
{ {
StringBuilder str; StringBuilder str;
U32 fnArgc = code[ip + 5]; U32 fnArgc = code[ip + 8];
for (U32 i = 0; i < fnArgc; ++i) 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) if (i != 0)
str.append(", "); str.append(", ");