[Hotfix] Add additional check to IsContentFlagEnabled given refactor from #1909

This commit is contained in:
Akkadius 2022-01-03 01:06:17 -06:00
parent 220d8497dd
commit d107ff3069

View File

@ -131,7 +131,7 @@ void WorldContentService::SetContentFlags(std::vector<ContentFlagsRepository::Co
bool WorldContentService::IsContentFlagEnabled(const std::string &content_flag)
{
for (auto &f: GetContentFlags()) {
if (f.flag_name == content_flag) {
if (f.flag_name == content_flag && f.enabled == true) {
return true;
}
}