small regression fix.

This commit is contained in:
Jeff Hutchinson 2021-09-04 22:00:32 -04:00
parent c16b88d709
commit 9b2f4976c9
2 changed files with 20 additions and 2 deletions

View file

@ -2002,7 +2002,7 @@ ConsoleValue CodeBlock::exec(U32 ip, const char* functionName, Namespace* thisNa
break;
}
stack[_STK + 1].setInt(result);
stack[_STK + 1].setFloat(result);
_STK++;
break;
}
@ -2139,7 +2139,7 @@ ConsoleValue CodeBlock::exec(U32 ip, const char* functionName, Namespace* thisNa
{
bool isGlobal = code[ip];
U32 failIp = code[ip + isGlobal ? 3 : 2];
U32 failIp = code[ip + (isGlobal ? 3 : 2)];
IterStackRecord& iter = iterStack[_ITER];
iter.mIsGlobalVariable = isGlobal;