moved del order

This commit is contained in:
Dave Schuyler 2005-04-29 03:48:50 +00:00
parent 8287e73425
commit 88c436e5b9

View File

@ -219,9 +219,9 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
def takedownPhysics(self): def takedownPhysics(self):
assert(self.debugPrint("takedownPhysics()")) assert(self.debugPrint("takedownPhysics()"))
if hasattr(self, "phys"): if hasattr(self, "phys"):
del self.phys
for i in self.nodes: for i in self.nodes:
i.removeNode() i.removeNode()
del self.phys
if self.ship != None: if self.ship != None:
self.ship.worldVelocity = Vec3.zero() self.ship.worldVelocity = Vec3.zero()