mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-17 02:43:26 +00:00
Fixed bug when links&tags of super tag overrid links of tag,
...dropping special context-based info.
This commit is contained in:
parent
7da50438ee
commit
8487b2044b
@ -257,6 +257,7 @@ void class_tag::add_tag(const std::string &path, const class_tag &tag,
|
||||
it->second.add_keys(tag.keys_);
|
||||
it->second.add_links(tag.links_);
|
||||
}
|
||||
links_.erase (tag.get_name ());
|
||||
return ;
|
||||
}
|
||||
std::string::size_type pos = path.find('/');
|
||||
@ -282,7 +283,9 @@ void class_tag::append_super(const class_tag &tag,const std::string & path){
|
||||
add_keys(tag.keys_);
|
||||
add_links(tag.links_);
|
||||
for (tag_map::const_iterator i = tag.tags_.begin();i!=tag.tags_.end();++i){
|
||||
links_.erase(i->first);
|
||||
add_link(path + "/" + i->first);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user