use == instead of is to compare physics objects

This commit is contained in:
Darren Ranalli 2007-09-20 23:25:29 +00:00
parent ae64fbe298
commit ca4d42804a
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class ShipPilot(PhysicsWalker):
# this could still break if we have more than one ShipPilot referencing
# a single boat
if (self.ship is not None and
base.controlForce.getPhysicsObject() is self.ship.node().getPhysicsObject()):
base.controlForce.getPhysicsObject() == self.ship.node().getPhysicsObject()):
base.controlForce.clearPhysicsObject()
base.controlForce.setVector(Vec3(0))
self.takedownPhysics()