浏览代码

Update astNodes.cpp

missed naming
marauder2k7 1 年之前
父节点
当前提交
b0181cc56a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/console/torquescript/astNodes.cpp

+ 1 - 1
Engine/source/console/torquescript/astNodes.cpp

@@ -214,7 +214,7 @@ U32 IfStmtNode::compileStmt(CodeStream& codeStream, U32 ip)
    if (testType == TypeReqString || testType == TypeReqNone)
    if (testType == TypeReqString || testType == TypeReqNone)
    {
    {
       ip = testExpr->compile(codeStream, ip, TypeReqString);
       ip = testExpr->compile(codeStream, ip, TypeReqString);
-      codeStream.emit(OP_JMPSTRING);
+      codeStream.emit(OP_JMPNOTSTRING);
    }
    }
    else
    else
    {
    {