aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Texts/CreatureTextMgr.cpp
diff options
context:
space:
mode:
authorMatan Shukry <matanshukry@gmail.com>2021-03-30 02:27:50 +0300
committerShauren <shauren.trinity@gmail.com>2021-05-03 23:53:24 +0200
commit3b578fc6b95bfc812962fcef7930d8646016d184 (patch)
treed881852521169f47a2db2cdaaa0eb0fb19f8ddaf /src/server/game/Texts/CreatureTextMgr.cpp
parentfb66575d38d2ba7ffc24c29824fa75d7019de549 (diff)
Core/Chat: Load chat language data from db2 and implement serverside chat translations
Diffstat (limited to 'src/server/game/Texts/CreatureTextMgr.cpp')
-rw-r--r--src/server/game/Texts/CreatureTextMgr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Texts/CreatureTextMgr.cpp b/src/server/game/Texts/CreatureTextMgr.cpp
index 5bd16c95c20..430af3e1a55 100644
--- a/src/server/game/Texts/CreatureTextMgr.cpp
+++ b/src/server/game/Texts/CreatureTextMgr.cpp
@@ -24,6 +24,7 @@
#include "DatabaseEnv.h"
#include "DB2Stores.h"
#include "GridNotifiersImpl.h"
+#include "LanguageMgr.h"
#include "Log.h"
#include "MiscPackets.h"
#include "ObjectMgr.h"
@@ -81,7 +82,7 @@ void CreatureTextMgr::LoadCreatureTexts()
}
}
- if (!GetLanguageDescByID(temp.lang))
+ if (!sLanguageMgr->IsLanguageExist(temp.lang))
{
TC_LOG_ERROR("sql.sql", "CreatureTextMgr: Entry %u, Group %u in table `creature_text` using Language %u but Language does not exist.", temp.creatureId, temp.groupId, uint32(temp.lang));
temp.lang = LANG_UNIVERSAL;