Fix bug when importing fit

This commit is contained in:
blitzmann
2016-04-30 18:03:03 -04:00
parent 8bf75e38ad
commit c9810cd019

View File

@@ -56,7 +56,8 @@ class Fit(object):
"""Initialize a fit from the program"""
# use @mode.setter's to set __attr and IDs. This will set mode as well
self.ship = ship
self.ship.parent = self
if self.ship:
self.ship.parent = self
self.__modules = HandledModuleList()
self.__drones = HandledDroneCargoList()