improve faction help ids
this not only fixes a very theoretical case where an era could have the same id as an era form another faction. It also makes it possible to check whether a topic describes a faction by just checking it's id prefix.
This commit is contained in:
parent
01b4a162f0
commit
0f44669e59
1 changed files with 1 additions and 1 deletions
|
@ -656,7 +656,7 @@ std::vector<topic> generate_faction_topics(const config & era, const bool sort_g
|
|||
}
|
||||
|
||||
const std::string name = f["name"];
|
||||
const std::string ref_id = era_prefix + era["id"] + "_" + faction_prefix + id;
|
||||
const std::string ref_id = faction_prefix + era["id"] + "_" + id;
|
||||
topics.emplace_back(name, ref_id, text.str());
|
||||
}
|
||||
if (sort_generated)
|
||||
|
|
Loading…
Add table
Reference in a new issue