Merge pull request #187 from google/increase_sub_id_by_1

Increase sub id by 1
This commit is contained in:
FanZhang 2017-08-23 12:23:57 -07:00 committed by GitHub
commit b4211303fa

View File

@ -488,7 +488,7 @@ bool ObjDecoder::ParseObject(bool *error) {
obj_name_to_id_[obj_name] = num_sub_objects_;
num_sub_objects_++;
} else {
num_sub_objects_ = it->second;
num_sub_objects_ = it->second + 1;
}
return true;
}