fix warning in TeamIndex constructor
This commit is contained in:
+1
-2
@@ -237,8 +237,7 @@ TeamIndex::TeamIndex(const string& directory, const JSON& reward_defs_json)
|
|||||||
if (filename == "base.json") {
|
if (filename == "base.json") {
|
||||||
auto json = JSON::parse(load_file(file_path));
|
auto json = JSON::parse(load_file(file_path));
|
||||||
this->next_team_id = json.get_int("NextTeamID");
|
this->next_team_id = json.get_int("NextTeamID");
|
||||||
}
|
} else if (ends_with(filename, ".json")) {
|
||||||
if (ends_with(filename, ".json")) {
|
|
||||||
try {
|
try {
|
||||||
uint32_t team_id = stoul(filename.substr(0, filename.size() - 5), nullptr, 16);
|
uint32_t team_id = stoul(filename.substr(0, filename.size() - 5), nullptr, 16);
|
||||||
auto team = make_shared<Team>(team_id);
|
auto team = make_shared<Team>(team_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user