Fix a small oversight (faulty if check)

This commit is contained in:
cncfanatics
2010-10-08 21:25:30 +02:00
parent 80a6667bd2
commit d3698ead8c

View File

@@ -398,13 +398,14 @@ class ItemAffectedBy (wx.Panel):
for attrName in cont.iterAfflictions():
for fit, afflictors in cont.getAfflictions(attrName).iteritems():
for afflictor in afflictors:
if afflictor not in things:
things[afflictor.item.name] = [afflictor, 0, set()]
if afflictor.item.name not in things:
things[afflictor.item.name] = [afflictor, 1, set()]
info = things[afflictor.item.name]
info[1] += 1
info[2].add(attrName)
if info[0] != afflictor:
info[1] += 1
info[2].add(attrName)
for itemName, info in things.iteritems():
if wx.Platform in ['__WXGTK__', '__WXMSW__']: