fixed parser bug: I_RET was not always added

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@174 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-25 14:46:23 +00:00
parent 031266c71b
commit 282d4b9751
+1 -1
View File
@@ -449,7 +449,7 @@ void parseOper(TokenIterator& input, Script& script, Precedence minPrec, Instruc
Token next = input.peek(1);
if (next == TOK_RPAREN || next == TOK_EOF) {
// allow ; at end of expression without errors
return;
break;
}
script.addInstruction(I_POP); // discard result of first expression
parseOper(input, script, PREC_SET);