Fix module states when loading from database with an incorrect state (see #529)

This commit is contained in:
blitzmann
2016-03-10 23:55:12 -05:00
parent a020ca9a71
commit fe64e2e24c

View File

@@ -131,6 +131,10 @@ class HandledModuleList(HandledList):
self.remove(mod)
return
# fix for #529, where a module may be in incorrect state after CCP changes mechanics of module
if not mod.isValidState(mod.state):
mod.state = eos.types.State.ONLINE
mod.position = len(self)
HandledList.append(self, mod)
if mod.isInvalid: