summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormbalint12 <gameshow841@gmail.com>2017-03-17 23:27:44 +0100
committermbalint12 <gameshow841@gmail.com>2017-03-17 23:27:44 +0100
commitedaf77abd614d1260c6827f25045cc0473a08117 (patch)
treed5c35ea5f14f67889aa597658faa43eda3c0afd1 /modules
parent3ceefab232604b09d3fff843c24a13e99f50912b (diff)
Fixed typo in gdscript autocompletion.
There was a missing '!' sign, but autocompletion shows parent script members too.
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gd_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_editor.cpp b/modules/gdscript/gd_editor.cpp
index bd428941e0..702876ecdc 100644
--- a/modules/gdscript/gd_editor.cpp
+++ b/modules/gdscript/gd_editor.cpp
@@ -405,7 +405,7 @@ static Ref<Reference> _get_parent_class(GDCompletionContext &context) {
if (script.is_null()) {
return REF();
}
- if (script->is_valid()) {
+ if (!script->is_valid()) {
return REF();
}