diff --git a/test/Physics/Src/EasyConstraint.cpp b/test/Physics/Src/EasyConstraint.cpp index fea878a4..a7ca6b87 100644 --- a/test/Physics/Src/EasyConstraint.cpp +++ b/test/Physics/Src/EasyConstraint.cpp @@ -27,7 +27,7 @@ void EasyConstraint::AddToSimulation(class Simulation* current_simulation) void EasyConstraint::RemoveFromSimulation(class Simulation* current_simulation) { btDiscreteDynamicsWorld* dynamics_world = current_simulation->GetWorld(); - if (dynamics_world, m_typed_constraint) + if (dynamics_world && m_typed_constraint) dynamics_world->removeConstraint(m_typed_constraint); }