diff --git a/src/user/user_model.cc b/src/user/user_model.cc index 8ce68cd7..c05a2bff 100644 --- a/src/user/user_model.cc +++ b/src/user/user_model.cc @@ -653,7 +653,7 @@ mjCModel& mjCModel::operator-=(const mjCBody& subtree) { // add default tree to this model -mjCModel_& mjCModel::operator+=(mjCDef& subtree) { +mjCModel& mjCModel::operator+=(mjCDef& subtree) { defaults_.push_back(&subtree); def_map[subtree.name] = &subtree; subtree.model = this; diff --git a/src/user/user_model.h b/src/user/user_model.h index 4bb1927e..d0bf43fa 100644 --- a/src/user/user_model.h +++ b/src/user/user_model.h @@ -187,7 +187,7 @@ class mjCModel : public mjCModel_, private mjSpec { mjCModel& operator=(const mjCModel& other); // copy other into this, if they are not the same mjCModel& operator+=(const mjCModel& other); // add other into this, even if they are the same mjCModel& operator-=(const mjCBody& subtree); // remove subtree and all references from model - mjCModel_& operator+=(mjCDef& subtree); // add default tree to this model + mjCModel& operator+=(mjCDef& subtree); // add default tree to this model mjCModel& operator-=(const mjCDef& subtree); // remove default tree from this model mjSpec spec;