Add a check for fit is None

This commit is contained in:
cncfanatics
2010-08-30 12:22:03 +02:00
parent cbfb1b2979
commit a3f66cd5f8

View File

@@ -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: