Don't forget to check if fit is None

This commit is contained in:
cncfanatics
2010-08-29 16:42:14 +02:00
parent 27cfb031f6
commit 146bda03fa

View File

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