mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 21:47:00 -04:00
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:
@@ -547,7 +547,7 @@ void parseOper(TokenIterator& input, Script& script, Precedence minPrec, Instruc
|
|||||||
// function call, read arguments
|
// function call, read arguments
|
||||||
vector<int> arguments;
|
vector<int> arguments;
|
||||||
Token t = input.peek();
|
Token t = input.peek();
|
||||||
while (t != _(")")) {
|
while (t != _(")") && t != TOK_EOF) {
|
||||||
if (input.peek(2) == _(":")) {
|
if (input.peek(2) == _(":")) {
|
||||||
// name: ...
|
// name: ...
|
||||||
arguments.push_back(string_to_variable(t.value));
|
arguments.push_back(string_to_variable(t.value));
|
||||||
|
|||||||
Reference in New Issue
Block a user