KSneijders / AoE2ScenarioParser

Python library for editing aoe2scenario files from Age of Empires 2 Definitive Edition
https://KSneijders.github.io/AoE2ScenarioParser/
GNU General Public License v3.0
78 stars 16 forks source link

fixed AttributeError of Unit.name() doing unknown unitID #13

Closed newtonerdai closed 3 years ago

newtonerdai commented 3 years ago

Detail see the annotation in unit.py -> def name(self)

KSneijders commented 3 years ago

The call to pretty_format_name in the else statement is redundant. Besides that, looks good! Thanks 👍🏼

KSneijders commented 3 years ago

I'll remove the pretty_format_name call after the PR 👍🏼