Commit 911e4e2b authored by Corentin Bettiol's avatar Corentin Bettiol 💻
Browse files

fix bug

parent 2d869f0b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ bool Graph::addArc(int n1, int n2, int d){

	// si l'arc existe déjà
	for(int i(0); i<arc.size(); i++){
		if(arc[i][0] == n1 && arc[i][1] == n2)
		if(arc[i][0] == getIdByNode(n1) && arc[i][1] == getIdByNode(n2)
			return false;
	}