mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Locales: Store empty localized strings present in database (#29779)
This commit is contained in:
@@ -239,16 +239,13 @@ ObjectMgr::~ObjectMgr()
|
||||
|
||||
void ObjectMgr::AddLocaleString(std::string_view value, LocaleConstant localeConstant, std::vector<std::string>& data)
|
||||
{
|
||||
if (!value.empty())
|
||||
if (data.size() <= size_t(localeConstant))
|
||||
{
|
||||
if (data.size() <= size_t(localeConstant))
|
||||
{
|
||||
data.reserve(TOTAL_LOCALES);
|
||||
data.resize(localeConstant + 1);
|
||||
}
|
||||
|
||||
data[localeConstant] = value;
|
||||
data.reserve(TOTAL_LOCALES);
|
||||
data.resize(localeConstant + 1);
|
||||
}
|
||||
|
||||
data[localeConstant] = value.empty() ? "" : value;
|
||||
}
|
||||
|
||||
void ObjectMgr::LoadCreatureLocales()
|
||||
|
||||
Reference in New Issue
Block a user