summaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_editor.cpp
diff options
context:
space:
mode:
authorAndreas Haas <Hinsbart@users.noreply.github.com>2017-03-18 00:05:28 +0100
committerGitHub <noreply@github.com>2017-03-18 00:05:28 +0100
commitbc547bbf36dcd2d86daddd9bfc9905d2b9f3821b (patch)
treed5c35ea5f14f67889aa597658faa43eda3c0afd1 /modules/gdscript/gd_editor.cpp
parent3ceefab232604b09d3fff843c24a13e99f50912b (diff)
parentedaf77abd614d1260c6827f25045cc0473a08117 (diff)
Merge pull request #8062 from magyar123/master
Fixed typo in gdscript autocompletion.
Diffstat (limited to 'modules/gdscript/gd_editor.cpp')
-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();
}