Skip to content

Commit

Permalink
moved a have_icon flag that caused wmlscope to not find attack icons …
Browse files Browse the repository at this point in the history
…any more
  • Loading branch information
Elvish-Hunter committed Nov 1, 2017
1 parent fca4795 commit df4e424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/tools/wesnoth/wmltools3.py
Expand Up @@ -709,6 +709,7 @@ def __init__(self, dirpath=[], exclude="", warnlevel=0, progress=False):
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):
Expand Down Expand Up @@ -811,7 +812,6 @@ def __init__(self, dirpath=[], exclude="", warnlevel=0, progress=False):
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
Expand Down

0 comments on commit df4e424

Please sign in to comment.