Browse Source

fixed uninitialized memory bug

Darren Ranalli 16 years ago
parent
commit
9a519539dd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/collide/collisionHandlerGravity.cxx

+ 1 - 0
panda/src/collide/collisionHandlerGravity.cxx

@@ -36,6 +36,7 @@ CollisionHandlerGravity() {
   _current_velocity = 0.0f;
   _current_velocity = 0.0f;
   _max_velocity = 400.0f;
   _max_velocity = 400.0f;
   _contact_normal = LVector3f::zero();
   _contact_normal = LVector3f::zero();
+  _legacy_mode = false;
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////