mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 09:11:30 +00:00
[Hotfix] Add additional check to IsContentFlagEnabled given refactor from #1909
This commit is contained in:
parent
220d8497dd
commit
d107ff3069
@ -131,7 +131,7 @@ void WorldContentService::SetContentFlags(std::vector<ContentFlagsRepository::Co
|
|||||||
bool WorldContentService::IsContentFlagEnabled(const std::string &content_flag)
|
bool WorldContentService::IsContentFlagEnabled(const std::string &content_flag)
|
||||||
{
|
{
|
||||||
for (auto &f: GetContentFlags()) {
|
for (auto &f: GetContentFlags()) {
|
||||||
if (f.flag_name == content_flag) {
|
if (f.flag_name == content_flag && f.enabled == true) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user