From f462171dbb17ea029105deaa26fa7f2cf8855c00 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Fri, 26 Nov 2010 12:38:52 +0200 Subject: [PATCH] Fixed ticket #306, probably this should be done eos side --- gui/builtinStatsViews/resourcesViewFull.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/builtinStatsViews/resourcesViewFull.py b/gui/builtinStatsViews/resourcesViewFull.py index eccbac060..80967805f 100644 --- a/gui/builtinStatsViews/resourcesViewFull.py +++ b/gui/builtinStatsViews/resourcesViewFull.py @@ -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: