mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9861] Backporting some code chnages from 400 branch.
(based on 400's commit 0f37423) (based on 400's commit 636cfef) (based on 400's commit 0bbe3a7) (based on 400's commit ce86b56) (based on 400's commit b74c6a8)
This commit is contained in:
parent
a0d9ffcc5f
commit
ff2cda6af1
18 changed files with 68 additions and 43 deletions
|
|
@ -6196,7 +6196,7 @@ std::string ObjectMgr::GeneratePetName(uint32 entry)
|
|||
if(list0.empty() || list1.empty())
|
||||
{
|
||||
CreatureInfo const *cinfo = GetCreatureTemplate(entry);
|
||||
char* petname = GetPetName(cinfo->family, sWorld.GetDefaultDbcLocale());
|
||||
char const* petname = GetPetName(cinfo->family, sWorld.GetDefaultDbcLocale());
|
||||
if(!petname)
|
||||
petname = cinfo->Name;
|
||||
return std::string(petname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue