]> git.localhorst.tv Git - l2e.git/commitdiff
fixed parsing of colors
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 2 Sep 2012 14:29:02 +0000 (16:29 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 2 Sep 2012 14:29:02 +0000 (16:29 +0200)
src/loader/Parser.cpp

index 6e5cbe014918a74846b67e6de7f68759e11bb6ee..01ddbe2bbdd19670bee0bcd0f88244063497d542 100644 (file)
@@ -287,7 +287,7 @@ Literal *Parser::ParseColor() {
        AssertTokenType(blue.type, Tokenizer::Token::NUMBER, "error parsing blue component of color");
 
        t = GetToken();
-       if (t.type == Tokenizer::Token::BRACKET_CLOSE) {
+       if (t.type == Tokenizer::Token::PARENTHESIS_CLOSE) {
                return new Literal(red.number, green.number, blue.number);
        } else if (t.type != Tokenizer::Token::COMMA) {
                Tokenizer::Token alpha(GetToken());