Browse Source

copy/paste fail

legacy
Benjamin ‘Touky’ Huet touky 12 years ago
parent
commit
652ba7d2a5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test/Physics/Src/EasyConstraint.cpp

+ 1
- 1
test/Physics/Src/EasyConstraint.cpp View File

@@ -27,7 +27,7 @@ void EasyConstraint::AddToSimulation(class Simulation* current_simulation)
void EasyConstraint::RemoveFromSimulation(class Simulation* current_simulation) void EasyConstraint::RemoveFromSimulation(class Simulation* current_simulation)
{ {
btDiscreteDynamicsWorld* dynamics_world = current_simulation->GetWorld(); btDiscreteDynamicsWorld* dynamics_world = current_simulation->GetWorld();
if (dynamics_world, m_typed_constraint)
if (dynamics_world && m_typed_constraint)
dynamics_world->removeConstraint(m_typed_constraint); dynamics_world->removeConstraint(m_typed_constraint);
} }




Loading…
Cancel
Save