Răsfoiți Sursa

fixed uninited var

Dave Schuyler 22 ani în urmă
părinte
comite
1f250aca80
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      panda/src/physics/actorNode.cxx

+ 2 - 0
panda/src/physics/actorNode.cxx

@@ -32,6 +32,7 @@ TypeHandle ActorNode::_type_handle;
 ActorNode::
 ActorNode(const string &name) :
     PhysicalNode(name) {
+  _contact_vector = LVector3f::zero();
   add_physical(new Physical(1, true));
   _mass_center = get_physical(0)->get_phys_body();
   _mass_center->set_active(true);
@@ -46,6 +47,7 @@ ActorNode(const string &name) :
 ActorNode::
 ActorNode(const ActorNode &copy) :
   PhysicalNode(copy) {
+  _contact_vector = LVector3f::zero();
   _ok_to_callback = true;
   _mass_center = get_physical(0)->get_phys_body();
 }