X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedsobscollectsummary.cpp;h=fffed0290b1136da46e42d31c99542da19ec9a0a;hb=529ec122f7cac4af987e121d150b878d7c7a0d5d;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++) {