[units.wesnoth.org] prevent possible infinite loop when analyzing units in a broken addon
This commit is contained in:
parent
a774ebad09
commit
ef27f8454b
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ class HTMLOutput:
|
|||
new_units_added = {}
|
||||
for uid, u in list(units_added.items()):
|
||||
for auid in u.advance:
|
||||
if not auid in units_added:
|
||||
if not auid in forest.lookup:
|
||||
try:
|
||||
au = self.wesnoth.unit_lookup[auid]
|
||||
except KeyError:
|
||||
|
|
Loading…
Add table
Reference in a new issue