moved a have_icon flag that caused wmlscope to not find attack icons any more

This commit is contained in:
Elvish_Hunter 2017-11-01 13:40:46 +01:00
parent fca4795f30
commit df4e424db0

View file

@ -709,6 +709,7 @@ class CrossRef:
if iswml(fn):
with codecs.open(fn, "r", "utf8") as rfp:
attack_name = None
have_icon = False
beneath = 0
ignoreflag = False
for (n, line) in enumerate(rfp):
@ -811,7 +812,6 @@ class CrossRef:
self.missing.append((name, Reference(ns,fn,n+1)))
# Notice implicit references through attacks
if state == "outside":
have_icon = False
if "[attack]" in line:
beneath = 0
attack_name = default_icon = None