Deep-copy the base unit's attacks before modifying them, this fixes bug #12778.

This commit is contained in:
Alexander van Gessel 2008-12-26 21:27:32 +01:00
parent 23d8eae674
commit 1c2e86d206

View file

@ -343,7 +343,7 @@ class HTMLOutput:
base_unit = self.wesnoth.get_base_unit(this_unit)
attacks = []
if base_unit:
attacks = self.get_recursive_attacks(base_unit)
attacks = copy.deepcopy(self.get_recursive_attacks(base_unit))
base_attacks_count = len(attacks)
for i, attack in enumerate(this_unit.get_all("attack")):