diff options
| author | Antonio MartÃn Berti <15972392+BertiRean@users.noreply.github.com> | 2024-06-03 19:44:22 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-04 00:44:22 +0200 |
| commit | 3fd967754388b7b859dbd8b954ec68a844e172f0 (patch) | |
| tree | 447c456bc9cad7e35c54ae4c5de937a478a7beac /src/server/game/Entities/Creature | |
| parent | 18fd59d965694b5cd0f62c011875a5d8beaac7e2 (diff) | |
Core/Misc: Added Loading.Locales to enable/disable the load of locales (#30013)
Diffstat (limited to 'src/server/game/Entities/Creature')
| -rw-r--r-- | src/server/game/Entities/Creature/Creature.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp index b4e5dba8d5f..3a9aaf7b317 100644 --- a/src/server/game/Entities/Creature/Creature.cpp +++ b/src/server/game/Entities/Creature/Creature.cpp @@ -162,7 +162,12 @@ CreatureModel const* CreatureTemplate::GetFirstVisibleModel() const void CreatureTemplate::InitializeQueryData() { for (uint8 loc = LOCALE_enUS; loc < TOTAL_LOCALES; ++loc) + { + if (!sWorld->getBoolConfig(CONFIG_LOAD_LOCALES) && loc != DEFAULT_LOCALE) + continue; + QueryData[loc] = BuildQueryData(static_cast<LocaleConstant>(loc), DIFFICULTY_NONE); + } } WorldPacket CreatureTemplate::BuildQueryData(LocaleConstant loc, Difficulty difficulty) const |
