diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-09-12 12:55:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-12 12:55:53 +0200 |
commit | aabbd00284640a4789f96702c134ea40b11b402e (patch) | |
tree | 8363659a6551644b0d89401681e2909d5451a119 /editor/plugins/script_text_editor.cpp | |
parent | c5e0e31f5106d7d91dc478af1f86740c74cea824 (diff) | |
parent | b2a38854fdde296fd2d7da139a29b23a18ab494d (diff) |
Merge pull request #10908 from hpvb/fix-unused-variables
Fix unused variable warnings
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index fae57eb5d2..2192d3ac49 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -624,7 +624,7 @@ void ScriptTextEditor::_code_complete_script(const String &p_code, List<String> } String hint; Error err = script->get_language()->complete_code(p_code, script->get_path().get_base_dir(), base, r_options, r_force, hint); - if (hint != "") { + if (err == OK && hint != "") { code_editor->get_text_edit()->set_code_hint(hint); } } |