X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedsobscollectsummary.cpp;h=fffed0290b1136da46e42d31c99542da19ec9a0a;hb=078d7227da8dda9ae8620822fa32d51ec2706fc3;hp=e2e169c58788dfcd7e9aa313b7105a446bef7867;hpb=e4c80376cc4533f66c8dfc18f3e1a86a60ac17fe;p=mothur.git diff --git a/sharedsobscollectsummary.cpp b/sharedsobscollectsummary.cpp index e2e169c..fffed02 100644 --- a/sharedsobscollectsummary.cpp +++ b/sharedsobscollectsummary.cpp @@ -19,7 +19,7 @@ EstOutput SharedSobsCS::getValues(vector shared){ double observed = 0; int numGroups = shared.size(); - for (int i = 0; i < shared[0]->size(); i++) { + for (int i = 0; i < shared[0]->getNumBins(); i++) { //get bin values and set sharedByAll bool sharedByAll = true; for (int j = 0; j < numGroups; j++) {