* fixed creature name assign at incoming query response
This commit is contained in:
parent
1288cd8f2a
commit
e0a0b7d82d
@ -81,7 +81,7 @@ uint32 ObjMgr::AssignNameToObj(uint32 entry, uint8 type, std::string name)
|
|||||||
uint32 changed = 0;
|
uint32 changed = 0;
|
||||||
for(ObjectMap::iterator it = _obj.begin(); it != _obj.end(); it++)
|
for(ObjectMap::iterator it = _obj.begin(); it != _obj.end(); it++)
|
||||||
{
|
{
|
||||||
if(it->second->GetEntry() && (it->second->GetTypeId() == type))
|
if(it->second->GetEntry() == entry && (it->second->GetTypeId() == type))
|
||||||
{
|
{
|
||||||
it->second->SetName(name);
|
it->second->SetName(name);
|
||||||
changed++;
|
changed++;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user