building: Don't try to do anything with the offsetNP unless we were setup

This commit is contained in:
Jeremy Koletar 2014-07-16 20:57:24 -05:00
parent 2be2f10747
commit ddf3b48cf9

View file

@ -116,12 +116,12 @@ class DistributedElevator(DistributedObject.DistributedObject):
del self.openDoors
if hasattr(self, 'closeDoors'):
del self.closeDoors
self.offsetNP.removeNode()
del self.fsm
del self.openSfx
del self.closeSfx
self.isSetup = 0
self.fillSlotTrack = None
self.offsetNP.removeNode()
if hasattr(base.localAvatar, 'elevatorNotifier'):
base.localAvatar.elevatorNotifier.cleanup()
DistributedObject.DistributedObject.delete(self)