diff --git a/gui/itemStats.py b/gui/itemStats.py index dfcaaac88..afccf229c 100644 --- a/gui/itemStats.py +++ b/gui/itemStats.py @@ -389,6 +389,7 @@ class ItemAffectedBy (wx.Panel): cont = stuff.chargeModifiedAttributes things = {} + pThings=[] for attrName in cont.iterAfflictions(): for fit, afflictors in cont.getAfflictions(attrName).iteritems(): for afflictor in afflictors: @@ -397,6 +398,10 @@ class ItemAffectedBy (wx.Panel): things[afflictor].add(attrName) + for thing in things.iteritems(): + if thing not in pThings: + pThings.append(thing) + for thing, attrs in things.iteritems(): self.effectList.InsertStringItem(sys.maxint, "%s: %s" % (thing.item.name, ', '.join(attrs)))