Fix crash for [/attack] without [attack]. Fixes #2052

This commit is contained in:
Alexander van Gessel 2017-09-29 12:41:31 +02:00
parent 74e4ea04e7
commit ca87ef4597

View file

@ -785,6 +785,7 @@ 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