summaryrefslogtreecommitdiff
path: root/modules/gdscript/language_server
diff options
context:
space:
mode:
authorThakee Nathees <thakeenathees@gmail.com>2020-03-05 20:51:02 +0530
committerThakee Nathees <thakeenathees@gmail.com>2020-03-05 20:51:02 +0530
commit07c99340d1253799675cdf341c633c29ad0164ad (patch)
treefc4da34aa5856f3032cad978fc0dd9c6d6561a0e /modules/gdscript/language_server
parent0e25f54755a5e37fe64e328b7cd3ce4058245f09 (diff)
typo in gdscript_workspace.cpp/remove_cache_parser() fixed
Diffstat (limited to 'modules/gdscript/language_server')
-rw-r--r--modules/gdscript/language_server/gdscript_workspace.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/language_server/gdscript_workspace.cpp b/modules/gdscript/language_server/gdscript_workspace.cpp
index ea54784f96..886d65d28c 100644
--- a/modules/gdscript/language_server/gdscript_workspace.cpp
+++ b/modules/gdscript/language_server/gdscript_workspace.cpp
@@ -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());