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/GameObject | |
| parent | 18fd59d965694b5cd0f62c011875a5d8beaac7e2 (diff) | |
Core/Misc: Added Loading.Locales to enable/disable the load of locales (#30013)
Diffstat (limited to 'src/server/game/Entities/GameObject')
| -rw-r--r-- | src/server/game/Entities/GameObject/GameObject.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index eaa8c05f0dc..75464e7441e 100644 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -63,7 +63,12 @@ void GameObjectTemplate::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)); + } } WorldPacket GameObjectTemplate::BuildQueryData(LocaleConstant loc) const |
