mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/CreatureTextMgr: Fix crash in GetLocalizedChatString()
This commit is contained in:
@@ -453,8 +453,7 @@ std::string CreatureTextMgr::GetLocalizedChatString(uint32 entry, uint8 textGrou
|
||||
if (locItr == mLocaleTextMap.end())
|
||||
return baseText;
|
||||
|
||||
if (locItr->second.Text[locale].length())
|
||||
return locItr->second.Text[locale];
|
||||
ObjectMgr::GetLocaleString(locItr->second.Text, locale, baseText);
|
||||
|
||||
return baseText;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user