X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedsorclass.cpp;h=85609dad69311e08474a2115755d74761052ab13;hb=3914b0d6480f67df53b1e838f51c4e6155710434;hp=32728f575a52f94c9d7b8b287fd14a7147ad53e9;hpb=5a7b1d45e9604becce2410333fcc71de818e3782;p=mothur.git diff --git a/sharedsorclass.cpp b/sharedsorclass.cpp index 32728f5..85609da 100644 --- a/sharedsorclass.cpp +++ b/sharedsorclass.cpp @@ -21,7 +21,7 @@ EstOutput SorClass::getValues(vector shared) { data.resize(1,0); - for (int i = 0; i < shared[0]->size(); i++) { + for (int i = 0; i < shared[0]->getNumBins(); i++) { //store in temps to avoid multiple repetitive function calls tempA = shared[0]->getAbundance(i); tempB = shared[1]->getAbundance(i);