Fixed ticket #306, probably this should be done eos side

This commit is contained in:
HomeWorld
2010-11-26 12:38:52 +02:00
parent bac008da68
commit f462171dbb

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: