From 708aab7920d39cd0f8347f9c87959149174f6b48 Mon Sep 17 00:00:00 2001 From: Thakee Nathees Date: Thu, 5 Mar 2020 20:51:02 +0530 Subject: [PATCH] typo in gdscript_workspace.cpp/remove_cache_parser() fixed (cherry picked from commit 07c99340d1253799675cdf341c633c29ad0164ad) --- modules/gdscript/language_server/gdscript_workspace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdscript/language_server/gdscript_workspace.cpp b/modules/gdscript/language_server/gdscript_workspace.cpp index 1c0590cff19..a3d737353c3 100644 --- a/modules/gdscript/language_server/gdscript_workspace.cpp +++ b/modules/gdscript/language_server/gdscript_workspace.cpp @@ -50,7 +50,7 @@ void GDScriptWorkspace::remove_cache_parser(const String &p_path) { Map::Element *parser = parse_results.find(p_path); Map::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());