]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/union.cpp
para que lo vean
[z.facultad/75.42/plaqui.git] / Constructor / union.cpp
index 4508b89cf792f8182280dc8905677c9f52182492..c2bef0c32f9ad2e89b52ad1acd692715f6e743ca 100644 (file)
@@ -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;
 }