aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-04 16:09:36 -0500
committermegamage <none@none>2009-06-04 16:09:36 -0500
commit45516c5e58dc9cab70d9e3c024f30e9a4342f6a3 (patch)
tree3d35bc439119d36a290f34ae6af3cfa7f33db097
parent87aa7465fb2a5bb853bd75400ca947e71e076a49 (diff)
[7950] Make clear in error output 2 cases of fail CMSG_ITEM_NAME_QUERY: DB absent data and not expected to exist item. Author: VladimirMangos
--HG-- branch : trunk
-rw-r--r--src/game/ItemHandler.cpp8
-rw-r--r--src/game/ObjectMgr.cpp3
2 files changed, 7 insertions, 4 deletions
diff --git a/src/game/ItemHandler.cpp b/src/game/ItemHandler.cpp
index ddb28e0288d..fe291783d38 100644
--- a/src/game/ItemHandler.cpp
+++ b/src/game/ItemHandler.cpp
@@ -1009,7 +1009,13 @@ void WorldSession::HandleItemNameQueryOpcode(WorldPacket & recv_data)
return;
}
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)
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp
index 6080807d7f1..8f87e58ed26 100644
--- a/src/game/ObjectMgr.cpp
+++ b/src/game/ObjectMgr.cpp
@@ -892,9 +892,6 @@ void ObjectMgr::LoadEquipmentTemplates()
}
sLog.outString( ">> Loaded %u equipment template", sEquipmentStorage.RecordCount );
sLog.outString();
-
- // Creature items can be not listed in item_template
- //sItemStore.Clear(); -- so used in spell casting
}
CreatureModelInfo const* ObjectMgr::GetCreatureModelInfo(uint32 modelid)