GDScript: Don't return wrong result for already completed solving state
This commit is contained in:
1 parent
f0aeea26fb
commit
83409fc50f
1 file changed
+4
@@ -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: {
|
||||
|
||||
Reference in new issue
Block a user