X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/789188ab0bf658fdf35c99e7bd2cfabab41091f2..5b8bbc5a3c2db31a69a637f0e35e8435ad4d8ff3:/Constructor/union.cpp diff --git a/Constructor/union.cpp b/Constructor/union.cpp index 4508b89..c2bef0c 100644 --- a/Constructor/union.cpp +++ b/Constructor/union.cpp @@ -151,8 +151,12 @@ bool Union::check_connection() return (is_connected = true); } } else { - if ( temp0 == IN && temp1 == IN && temp2 == OUT ) + if ( temp0 == IN && temp1 == IN && temp2 == OUT ) { + connect_vec[0].id_dest = _item0->get_id(); + connect_vec[1].id_dest = _item1->get_id(); + connect_vec[2].id_dest = _item2->get_id(); return (is_connected = true); + } } return is_connected; }