Got rid of warning

release/4.3a0
dellaert 2015-02-21 13:08:22 +01:00
parent 19e7b6bf39
commit b662c8f644
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ namespace gtsam {
}
// if label is already in correct order, just put together a choice on label
if (!highestLabel || label > *highestLabel) {
if (!highestLabel || !nrChoices || label > *highestLabel) {
boost::shared_ptr<Choice> choiceOnLabel(new Choice(label, end - begin));
for (Iterator it = begin; it != end; it++)
choiceOnLabel->push_back(it->root_);