Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold856 committed Jan 3, 2024
1 parent e934c6b commit 5f8692b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wpilibc/src/main/native/cpp/smartdashboard/Mechanism2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ MechanismRoot2d* Mechanism2d::GetRoot(std::string_view name, double x,
if (obj) {
return obj.get();
}
obj = std::make_unique<MechanismRoot2d>(name, x, y,
MechanismRoot2d::private_init{});
obj = std::make_unique<MechanismRoot2d>(name, x, y);
if (m_table) {
obj->Update(m_table->GetSubTable(name));
}
Expand Down

0 comments on commit 5f8692b

Please sign in to comment.