fixed infinite loop in parser

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@293 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-04-22 23:18:10 +00:00
parent 19c5250edb
commit 87d751747d
+1 -1
View File
@@ -547,7 +547,7 @@ void parseOper(TokenIterator& input, Script& script, Precedence minPrec, Instruc
// function call, read arguments
vector<int> arguments;
Token t = input.peek();
while (t != _(")")) {
while (t != _(")") && t != TOK_EOF) {
if (input.peek(2) == _(":")) {
// name: ...
arguments.push_back(string_to_variable(t.value));