Browse Source

removed some asserts

Dave Schuyler 20 years ago
parent
commit
677986a4f4
1 changed files with 0 additions and 3 deletions
  1. 0 3
      panda/src/physics/physicsManager.cxx

+ 0 - 3
panda/src/physics/physicsManager.cxx

@@ -111,7 +111,6 @@ remove_angular_force(AngularForce *f) {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void PhysicsManager::
 void PhysicsManager::
 remove_physical(Physical *p) {
 remove_physical(Physical *p) {
-  nassertv(this);
   nassertv(p);
   nassertv(p);
   pvector< Physical * >::iterator found;
   pvector< Physical * >::iterator found;
 
 
@@ -119,11 +118,9 @@ remove_physical(Physical *p) {
   if (found == _physicals.end()) {
   if (found == _physicals.end()) {
     return;
     return;
   }
   }
-  nassertv(*found == p);
   nassertv(p->_physics_manager == this);
   nassertv(p->_physics_manager == this);
   p->_physics_manager = (PhysicsManager *) NULL;
   p->_physics_manager = (PhysicsManager *) NULL;
   _physicals.erase(found);
   _physicals.erase(found);
-  nassertv(_physicals.end() == find(_physicals.begin(), _physicals.end(), p));
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////