Skip to content

Commit

Permalink
json: fix internal connection read
Browse files Browse the repository at this point in the history
  • Loading branch information
quesnel committed May 6, 2024
1 parent 82a9a11 commit 57805e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2634,7 +2634,7 @@ struct reader {

if (auto* c_src = compo.children.try_to_get(src); c_src)
if (auto* c_dst = compo.children.try_to_get(dst); c_dst)
if (not compo.connect(mod(), *c_src, p_src, *c_dst, p_dst))
if (compo.connect(mod(), *c_src, p_src, *c_dst, p_dst))
return true;

report_json_error(error_id::modeling_connect_error);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/modeling-generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ status generic_component::connect([[maybe_unused]] const modeling& mod,
return new_error(modeling::part::connections);

if (src.type == child_type::model) {
if (src.type == child_type::model) {
if (dst.type == child_type::model) {
if (not is_ports_compatible(
src.id.mdl_type, p_src.model, dst.id.mdl_type, p_dst.model))
return new_error(modeling::part::connections);
Expand Down

0 comments on commit 57805e0

Please sign in to comment.