GDScript: Don't return wrong result for already completed solving state
This commit is contained in:
parent
f0aeea26fb
commit
83409fc50f
1 changed files with 4 additions and 0 deletions
|
|
@ -68,6 +68,10 @@ Error GDScriptParserRef::raise_status(Status p_new_status) {
|
|||
ERR_FAIL_COND_V(clearing, ERR_BUG);
|
||||
ERR_FAIL_COND_V(parser == nullptr && status != EMPTY, ERR_BUG);
|
||||
|
||||
if (p_new_status < status) {
|
||||
return OK;
|
||||
}
|
||||
|
||||
while (result == OK && p_new_status > status) {
|
||||
switch (status) {
|
||||
case EMPTY: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue