Fixed pygauge traceback for Noctis

Apparently, that ship hands back None for drone bay capacity (and possibly drone bandwidth too).  Fixed the resourcesView to not pass None to pygauge, thus fixing the traceback.
This commit is contained in:
Lucas Thode
2010-11-25 11:57:40 -06:00
parent 604c1e6923
commit 8d0c144477

View File

@@ -214,7 +214,7 @@ class ResourcesViewFull(StatsView):
gauge = getattr(self, "gauge%s%s" % (panel, capitalizedType))
resUsed = getattr(fit,"%sUsed" % resourceType)
gauge.SetValueRange(resUsed, resMax[i]())
gauge.SetValueRange(resUsed or 0, resMax[i]() or 0)
i+=1
else: