X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=phylotree.cpp;fp=phylotree.cpp;h=73cb461b852c3946d62140c2d6520481cff0e937;hb=5b72d1cf3fa48730e5bb70d59cced1e43e1fe424;hp=3dde18680c625eb816230a8d13774ccfc47032cf;hpb=6c2b1e530a5c0bb87040e58a3e410097acdfcc3d;p=mothur.git diff --git a/phylotree.cpp b/phylotree.cpp index 3dde186..73cb461 100644 --- a/phylotree.cpp +++ b/phylotree.cpp @@ -598,7 +598,7 @@ int PhyloTree::getIndex(string seqName){ try { map::iterator itFind = name2Taxonomy.find(seqName); - if (itFind != name2Taxonomy.end()) { return name2Taxonomy[seqName]; } + if (itFind != name2Taxonomy.end()) { return itFind->second; } else { m->mothurOut("Cannot find " + seqName + ". Mismatch with taxonomy and template files. Cannot continue."); m->mothurOutEndLine(); exit(1);} } catch(exception& e) {