Fix an oversight which led to charges not unloading when replacing module

This commit is contained in:
DarkPhoenix
2019-05-01 17:59:59 +03:00
parent 7375258b9f
commit b11a576922

View File

@@ -45,7 +45,7 @@ class CalcReplaceLocalModuleCommand(wx.Command):
pyfalog.warning('Module does not fit')
self.Undo()
return False
if not not self.ignoreRestrictions and not newMod.isValidCharge(newMod.charge):
if not self.ignoreRestrictions and not newMod.isValidCharge(newMod.charge):
if self.unloadInvalidCharges:
newMod.charge = None
self.unloadedCharge = True