Merge pull request #36814 from ThakeeNathees/typo-gdscript_workspace-fix

typo in gdscript_workspace.cpp fixed
This commit is contained in:
Rémi Verschelde 2020-03-07 09:30:19 +01:00 committed by GitHub
commit b9f2f77dba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,7 @@ void GDScriptWorkspace::remove_cache_parser(const String &p_path) {
Map<String, ExtendGDScriptParser *>::Element *parser = parse_results.find(p_path);
Map<String, ExtendGDScriptParser *>::Element *script = scripts.find(p_path);
if (parser && script) {
if (script->get() && script->get() == script->get()) {
if (script->get() && script->get() == parser->get()) {
memdelete(script->get());
} else {
memdelete(script->get());