diff --git a/wpilibNewCommands/src/main/native/cpp/frc2/command/CommandScheduler.cpp b/wpilibNewCommands/src/main/native/cpp/frc2/command/CommandScheduler.cpp index d7e1ad32dc4..d8bb956440e 100644 --- a/wpilibNewCommands/src/main/native/cpp/frc2/command/CommandScheduler.cpp +++ b/wpilibNewCommands/src/main/native/cpp/frc2/command/CommandScheduler.cpp @@ -100,6 +100,7 @@ void CommandScheduler::ResetInstance() { "Ignoring call to frc2::CommandScheduler::ResetInstance() outside of " "simulation! frc2::CommandScheduler::ResetInstance() should only be " "used for unit test setup."); + return; } std::make_unique().swap(GetInstance().m_impl); }