- Fixed a ship crash

This commit is contained in:
Jason Yeung 2007-01-04 02:06:26 +00:00
parent deb3f12f1b
commit 7698e4801b

View File

@ -23,7 +23,8 @@ class DistributedNode(DistributedObject.DistributedObject, NodePath):
def disable(self):
if self.activeState != DistributedObject.ESDisabled:
self.reparentTo(hidden)
if not self.isEmpty():
self.reparentTo(hidden)
DistributedObject.DistributedObject.disable(self)
def delete(self):