diff --git a/bin/lsd2_mac b/bin/lsd2_mac index 60d2971..f2faf9b 100755 Binary files a/bin/lsd2_mac and b/bin/lsd2_mac differ diff --git a/bin/lsd2_unix b/bin/lsd2_unix index 0ee07ea..2ae38a5 100755 Binary files a/bin/lsd2_unix and b/bin/lsd2_unix differ diff --git a/src/utils.cpp b/src/utils.cpp index 33740cf..7dee63f 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -3114,6 +3114,7 @@ int collapseTree(Pr* pr,Node** nodes,Node** nodes_new,int* &tab, double toCollap void collapseTreeReOrder(Pr* pr,Node** nodes,Pr* prReduced,Node** nodesReduced,int* &tab){ int root = (int)(!pr->rooted); + nodesReduced[0]=new Node(); nodesReduced[root]=new Node(); nodesReduced[root]->P=-1; nodesReduced[root]->type=nodes[root]->type;