Don't forget to check if fit is None
This commit is contained in:
@@ -176,7 +176,7 @@ class StatsPane(wx.Panel):
|
||||
else:
|
||||
lbl.SetLabel("0.0")
|
||||
|
||||
maxTank = ("shieldPassive", fit.calculateShieldRecharge())
|
||||
maxTank = ("shieldPassive", fit.calculateShieldRecharge() if fit else 0)
|
||||
for tankType in ("shield", "armor", "hull"):
|
||||
if tank is not None:
|
||||
maxType, maxAmount = maxTank
|
||||
|
||||
Reference in New Issue
Block a user