Core/Locales: b5ad731cf3 followup

This commit is contained in:
Ovahlord committed 2022-12-21 10:47:49 +01:00
1 parent b5ad731cf3
commit b5dcfece67
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -286,7 +286,7 @@ ObjectMgr::~ObjectMgr()
delete itr->second;
}
void ObjectMgr::AddLocaleString(std::string const&& value, LocaleConstant localeConstant, std::vector<std::string>& data)
void ObjectMgr::AddLocaleString(std::string&& value, LocaleConstant localeConstant, std::vector<std::string>& data)
{
if (!value.empty())
{
+1 -1
View File
@@ -1571,7 +1571,7 @@ class TC_GAME_API ObjectMgr
// for wintergrasp only
GraveyardContainer GraveyardStore;
static void AddLocaleString(std::string const&& value, LocaleConstant localeConstant, std::vector<std::string>& data);
static void AddLocaleString(std::string&& value, LocaleConstant localeConstant, std::vector<std::string>& data);
static inline void GetLocaleString(std::vector<std::string> const& data, LocaleConstant localeConstant, std::string& value)
{
if (data.size() > size_t(localeConstant) && !data[localeConstant].empty())