diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-07-20 08:09:57 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-07-20 08:09:57 +0200 |
commit | 6cbaf7662f5ee3ca1d02c0ebc85854fceee057af (patch) | |
tree | 9c6c688f72d0a6e2e79879be73e15adeb328d1b1 /modules/visual_script/visual_script_nodes.cpp | |
parent | 584ca0f156cec64c259382895e105cf27566a987 (diff) |
Changed some code showed in LGTM and Coverage
Diffstat (limited to 'modules/visual_script/visual_script_nodes.cpp')
-rw-r--r-- | modules/visual_script/visual_script_nodes.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/visual_script/visual_script_nodes.cpp b/modules/visual_script/visual_script_nodes.cpp index 1b0e41b2de..3b0210597b 100644 --- a/modules/visual_script/visual_script_nodes.cpp +++ b/modules/visual_script/visual_script_nodes.cpp @@ -197,7 +197,6 @@ String VisualScriptFunction::get_output_sequence_port_text(int p_port) const { PropertyInfo VisualScriptFunction::get_input_value_port_info(int p_idx) const { ERR_FAIL_V(PropertyInfo()); - return PropertyInfo(); } PropertyInfo VisualScriptFunction::get_output_value_port_info(int p_idx) const { @@ -418,7 +417,7 @@ PropertyInfo VisualScriptOperator::get_input_value_port_info(int p_idx) const { { Variant::NIL, Variant::NIL } //OP_IN, }; - ERR_FAIL_INDEX_V(p_idx, Variant::OP_MAX, PropertyInfo()); + ERR_FAIL_INDEX_V(p_idx, 2, PropertyInfo()); PropertyInfo pinfo; pinfo.name = p_idx == 0 ? "A" : "B"; |