mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Removed remaining usages of std::vector<bool>
This commit is contained in:
@@ -256,10 +256,14 @@ void CSkillHandler::beforeValidate(JsonNode & object)
|
||||
inheritNode("expert");
|
||||
}
|
||||
|
||||
std::vector<bool> CSkillHandler::getDefaultAllowed() const
|
||||
std::set<SecondarySkill> CSkillHandler::getDefaultAllowed() const
|
||||
{
|
||||
std::vector<bool> allowedSkills(objects.size(), true);
|
||||
return allowedSkills;
|
||||
std::set<SecondarySkill> result;
|
||||
|
||||
for (auto const & skill : objects)
|
||||
result.insert(skill->getId());
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
|
||||
Reference in New Issue
Block a user