Add a check for fit is None
This commit is contained in:
@@ -177,7 +177,7 @@ class StatsPane(wx.Panel):
|
||||
else:
|
||||
lbl.SetLabel("0.0")
|
||||
|
||||
tank = fit.effectiveTank
|
||||
tank = fit.effectiveTank if fit != None else None
|
||||
maxTank = ("shieldPassive", fit.calculateShieldRecharge() if fit else 0)
|
||||
for tankType in ("shield", "armor", "hull"):
|
||||
if tank is not None:
|
||||
|
||||
Reference in New Issue
Block a user