Skip to content

Commit

Permalink
Fix crash for [/attack] without [attack]. Fixes #2052
Browse files Browse the repository at this point in the history
  • Loading branch information
AI0867 committed Sep 29, 2017
1 parent 74e4ea0 commit ca87ef4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/tools/wesnoth/wmltools3.py
Expand Up @@ -785,6 +785,7 @@ 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 ca87ef4

Please sign in to comment.