Fix issue with setting None charge

This commit is contained in:
blitzmann
2018-08-03 02:01:26 -04:00
parent e0add506c9
commit 6057a1a7d9

View File

@@ -32,7 +32,7 @@ class FitSetChargeCommand(wx.Command):
self.cache = {fit.modules[i].modPosition: fit.modules[i].chargeID for i in positions}
ammo = eos.db.getItem(chargeID) if chargeID else None
if not ammo.isCharge:
if ammo is not None and not ammo.isCharge:
return False
result = False