From 282d4b975192284ec9c73bb3de59ecb7d16c7b2c Mon Sep 17 00:00:00 2001 From: twanvl Date: Mon, 25 Dec 2006 14:46:23 +0000 Subject: [PATCH] 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 --- src/script/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/parser.cpp b/src/script/parser.cpp index 5a56c74e..12385763 100644 --- a/src/script/parser.cpp +++ b/src/script/parser.cpp @@ -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);