- 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,6 +23,7 @@ class DistributedNode(DistributedObject.DistributedObject, NodePath):
def disable(self):
if self.activeState != DistributedObject.ESDisabled:
if not self.isEmpty():
self.reparentTo(hidden)
DistributedObject.DistributedObject.disable(self)