mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[7950] Make clear in error output 2 cases of fail CMSG_ITEM_NAME_QUERY: DB absent data and not expected to exist item.
This commit is contained in:
parent
daae9343a9
commit
0b3a4bf5a5
3 changed files with 8 additions and 5 deletions
|
|
@ -1007,7 +1007,13 @@ void WorldSession::HandleItemNameQueryOpcode(WorldPacket & recv_data)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
sLog.outErrorDb("WORLD: CMSG_ITEM_NAME_QUERY for item %u failed (unknown item)", itemid);
|
{
|
||||||
|
// listed in dbc or not expected to exist unknown item
|
||||||
|
if(sItemStore.LookupEntry(itemid))
|
||||||
|
sLog.outErrorDb("WORLD: CMSG_ITEM_NAME_QUERY for item %u failed (item listed in Item.dbc but not exist in DB)", itemid);
|
||||||
|
else
|
||||||
|
sLog.outError("WORLD: CMSG_ITEM_NAME_QUERY for item %u failed (unknown item, not listed in Item.dbc)", itemid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandleWrapItemOpcode(WorldPacket& recv_data)
|
void WorldSession::HandleWrapItemOpcode(WorldPacket& recv_data)
|
||||||
|
|
|
||||||
|
|
@ -813,9 +813,6 @@ void ObjectMgr::LoadEquipmentTemplates()
|
||||||
}
|
}
|
||||||
sLog.outString( ">> Loaded %u equipment template", sEquipmentStorage.RecordCount );
|
sLog.outString( ">> Loaded %u equipment template", sEquipmentStorage.RecordCount );
|
||||||
sLog.outString();
|
sLog.outString();
|
||||||
|
|
||||||
// Creature items can be not listed in item_template
|
|
||||||
//sItemStore.Clear(); -- so used in spell casting
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CreatureModelInfo const* ObjectMgr::GetCreatureModelInfo(uint32 modelid)
|
CreatureModelInfo const* ObjectMgr::GetCreatureModelInfo(uint32 modelid)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7949"
|
#define REVISION_NR "7950"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue