mirror of
https://github.com/godotengine/godot.git
synced 2026-02-08 19:59:49 +00:00
GDScript: Don't return wrong result for already completed solving state
This commit is contained in:
@@ -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