Browse Source

Update astNodes.cpp

missed naming
marauder2k7 1 năm trước cách đây
mục cha
commit
b0181cc56a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)
    {
       ip = testExpr->compile(codeStream, ip, TypeReqString);
-      codeStream.emit(OP_JMPSTRING);
+      codeStream.emit(OP_JMPNOTSTRING);
    }
    else
    {