mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +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)
|
||||
{
|
||||
for (auto &f: GetContentFlags()) {
|
||||
if (f.flag_name == content_flag) {
|
||||
if (f.flag_name == content_flag && f.enabled == true) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user