Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit cb4b854

Browse files
committed
[Bug 17068] Parse "ask files()" correctly
When backing up the MCAsk parser after failing to parse "ask files()" as "ask files", reset to the default ask type (i.e. question).
1 parent 302750c commit cb4b854

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/notes/bugfix-17068.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Parse "ask files()" correctly

engine/src/ask.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ Parse_stat MCAsk::parse(MCScriptPoint &sp)
117117

118118
default:
119119
sp . backup();
120+
mode = AT_QUESTION;
120121
t_error = parse_question(sp);
121122
break;
122123
}

0 commit comments

Comments
 (0)