]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedchao1.cpp
added modify names parameter to set.dir
[mothur.git] / sharedchao1.cpp
index d8cf60bf0cfe67097bcdadc8025ffc5829af6354..8d47ad2fca1d307bd150a985224b1099e492626a 100644 (file)
@@ -29,7 +29,7 @@ EstOutput SharedChao1::getValues(vector<SharedRAbundVector*> shared){
                //create and initialize trees to 0.
                initialTree(numGroups);
                
-               for (int i = 0; i < shared[0]->size(); i++) {
+               for (int i = 0; i < shared[0]->getNumBins(); i++) {
                        //get bin values and calc shared 
                        bool sharedByAll = true;
                        temp.clear();