From: Daniel Karbach Date: Sun, 2 Sep 2012 14:29:02 +0000 (+0200) Subject: fixed parsing of colors X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=b4a7dd75a2834dcf292da19a9ca44c527e163002;p=l2e.git fixed parsing of colors --- diff --git a/src/loader/Parser.cpp b/src/loader/Parser.cpp index 6e5cbe0..01ddbe2 100644 --- a/src/loader/Parser.cpp +++ b/src/loader/Parser.cpp @@ -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());