diff --git a/modules/gdscript/gdscript_cache.cpp b/modules/gdscript/gdscript_cache.cpp index 3daa65e0b2..17dc5fe4c5 100644 --- a/modules/gdscript/gdscript_cache.cpp +++ b/modules/gdscript/gdscript_cache.cpp @@ -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: {