From a8337fd126a3c5ee9497b022fe49a4ff95ddcbe3 Mon Sep 17 00:00:00 2001
From: Olivier BICHLER <olivier.bichler@cea.fr>
Date: Tue, 28 Nov 2023 11:23:06 +0100
Subject: [PATCH] Fixed bug

---
 src/graph/GraphView.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/graph/GraphView.cpp b/src/graph/GraphView.cpp
index 7b21cc889..499cdcf2c 100644
--- a/src/graph/GraphView.cpp
+++ b/src/graph/GraphView.cpp
@@ -895,8 +895,8 @@ void Aidge::GraphView::updateInputsOutputsNew(std::shared_ptr<Node> newNode) {
   for (const std::shared_ptr<Node>& parent : newNode->getParents()) {
     // Check that newNode parent is in current GraphView
     if (mNodes.find(parent) != mNodes.end()) {
+      IOIndex_t outputIdx = 0;
       for (auto orderedChilds : parent->getOrderedChildren()) {
-        IOIndex_t outputIdx = 0;
         for (auto ch_ptr : orderedChilds) {
           // If newNode is connected to it
           if (ch_ptr == newNode) {
-- 
GitLab