From fe64e2e24cbb20da304ddf86348d612b4136056f Mon Sep 17 00:00:00 2001 From: blitzmann Date: Thu, 10 Mar 2016 23:55:12 -0500 Subject: [PATCH] Fix module states when loading from database with an incorrect state (see #529) --- eos/effectHandlerHelpers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eos/effectHandlerHelpers.py b/eos/effectHandlerHelpers.py index eca4d6437..7f19c4382 100644 --- a/eos/effectHandlerHelpers.py +++ b/eos/effectHandlerHelpers.py @@ -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: