From da8d33437f8bc0e63e4bf70fd1c73e7a4db3872f Mon Sep 17 00:00:00 2001 From: Lucas Thode Date: Thu, 25 Nov 2010 12:18:38 -0600 Subject: [PATCH] Revert "Revert "Fixed pygauge traceback for Noctis"" This reverts commit df21afef0dac67fe24a81d94b5127f716dcc7898. --- 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: