Remove another reference to obsolete name= in [unit_type].

This commit is contained in:
Eric S. Raymond 2008-03-12 19:25:20 +00:00
parent e296b6109f
commit 13ab8210cb

View file

@ -927,9 +927,6 @@ void game_data::set_config(const config& cfg)
merge_cfg.merge_with(**i.first);
merge_cfg.clear_children("base_unit");
std::string id = merge_cfg["id"];
if(id.empty()) {
id = merge_cfg["name"];
}
std::pair<unit_type_map::iterator,bool> insertion =
unit_types.insert(std::pair<std::string,unit_type>(id,unit_type()));
if (insertion.second) {