Skip to content

Commit

Permalink
Fix SimpleLevelParser with string level
Browse files Browse the repository at this point in the history
Simple fan level entries weren't correctly parsed when the fan level was
enclosed in double quotes, e.g. as in "level full-speed".
  • Loading branch information
Victor Mataré committed Nov 6, 2016
1 parent 6142777 commit e806611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ SimpleLevel *SimpleLevelParser::_parse(const char *&input)
) {
comment_parser.match(input);
ints.reset(IntListParser().parse(input));
if (ints && ints->size() == 2 && quot.close(input))
if (ints && ints->size() == 2 && bracket_parser_.close(input))
return new SimpleLevel(*lvl_str, (*ints)[0], (*ints)[1]);
}
}
Expand Down

0 comments on commit e806611

Please sign in to comment.