Merge branch 'liyunfan1223:master' into locale_fix

This commit is contained in:
Atidote 2024-07-26 11:03:24 +02:00 committed by GitHub
commit 00ab0dfa37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -336,11 +336,11 @@ std::string const ChatHelper::FormatItem(ItemTemplate const* proto, uint32 count
char color[32];
sprintf(color, "%x", ItemQualityColors[proto->Quality]);
const std::string &name = sObjectMgr->GetItemLocale(proto->ItemId)->Name[sWorld->GetDefaultDbcLocale()];
// const std::string &name = sObjectMgr->GetItemLocale(proto->ItemId)->Name[sWorld->GetDefaultDbcLocale()];
std::ostringstream out;
out << "|c" << color << "|Hitem:" << proto->ItemId
<< ":0:0:0:0:0:0:0" << "|h[" << name
<< ":0:0:0:0:0:0:0" << "|h[" << proto->Name1
<< "]|h|r";
if (count > 1)