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:
gfgtdf 2017-06-21 20:58:48 +02:00 committed by GitHub
parent 01b4a162f0
commit 0f44669e59

View file

@ -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)