2
0
Fork 0

GDScript: Don't clear depended parsers too soon

It can wait until the analyzer itself is destructed, otherwise other
phases might be using freed parsers.
4.0
George Marques 2020-10-21 20:27:44 +07:00
parent 817fb3d702
commit 627ca7f30e
No known key found for this signature in database
GPG Key ID: 046BD46A3201E43D
1 changed files with 0 additions and 1 deletions

@ -3370,7 +3370,6 @@ Error GDScriptAnalyzer::resolve_program() {
}
depended_parsers[E->get()]->raise_status(GDScriptParserRef::FULLY_SOLVED);
}
depended_parsers.clear();
return parser->errors.empty() ? OK : ERR_PARSE_ERROR;
}