diff --git a/wpilibc/src/main/native/cpp/smartdashboard/Mechanism2d.cpp b/wpilibc/src/main/native/cpp/smartdashboard/Mechanism2d.cpp index b2e0657dee9..a73ebe4f159 100644 --- a/wpilibc/src/main/native/cpp/smartdashboard/Mechanism2d.cpp +++ b/wpilibc/src/main/native/cpp/smartdashboard/Mechanism2d.cpp @@ -29,8 +29,7 @@ MechanismRoot2d* Mechanism2d::GetRoot(std::string_view name, double x, if (obj) { return obj.get(); } - obj = std::make_unique(name, x, y, - MechanismRoot2d::private_init{}); + obj = std::make_unique(name, x, y); if (m_table) { obj->Update(m_table->GetSubTable(name)); }