aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/director/lingo/lingo-lex.cpp2
-rw-r--r--engines/director/lingo/lingo-lex.l2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo-lex.cpp b/engines/director/lingo/lingo-lex.cpp
index 1c69d3f23e..534a13cd12 100644
--- a/engines/director/lingo/lingo-lex.cpp
+++ b/engines/director/lingo/lingo-lex.cpp
@@ -831,7 +831,7 @@ YY_RULE_SETUP
case 12:
YY_RULE_SETUP
#line 58 "engines/director/lingo/lingo-lex.l"
-{ yylval.s = new Common::String(yytext); return STRING; }
+{ yylval.s = new Common::String(&yytext[1]); yylval.s->deleteLastChar(); return STRING; }
YY_BREAK
case 13:
YY_RULE_SETUP
diff --git a/engines/director/lingo/lingo-lex.l b/engines/director/lingo/lingo-lex.l
index 7eb3810e28..6d97d17990 100644
--- a/engines/director/lingo/lingo-lex.l
+++ b/engines/director/lingo/lingo-lex.l
@@ -55,7 +55,7 @@ to { return OP_TO; }
{constinteger} { yylval.i = strtol(yytext, NULL, 10); return INT; }
{operator} { return *yytext; }
{newline} { return '\n'; }
-{conststring} { yylval.s = new Common::String(yytext); return STRING; }
+{conststring} { yylval.s = new Common::String(&yytext[1]); yylval.s->deleteLastChar(); return STRING; }
%%