Core/CreatureTextMgr: Fix crash in GetLocalizedChatString()
This commit is contained in:
1 parent
73282f9789
commit
1ddf039de8
1 file changed
+1
-2
@@ -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