From 9d342e2ab69a8b2e9e7dd1e459a30a71e695a42e Mon Sep 17 00:00:00 2001 From: XTZGZoReX Date: Tue, 22 Dec 2009 02:39:39 +0100 Subject: * More DB tweaks: - Load GO even if it has no displayid - while it's wrong, it's not something that'll kill the client anyway. - Don't warn about non-existing loot templates for GOs - this is to allow some WDB data to be filled in (GOs that have no spawns and thus no gameobject_loot_template entries). --HG-- branch : trunk --- src/game/LootMgr.cpp | 9 +++++---- src/game/ObjectMgr.cpp | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/game/LootMgr.cpp b/src/game/LootMgr.cpp index 13996cd3e96..d592092d5fe 100644 --- a/src/game/LootMgr.cpp +++ b/src/game/LootMgr.cpp @@ -1253,10 +1253,11 @@ void LoadLootTemplates_Gameobject() { if (uint32 lootid = gInfo->GetLootId()) { - if (!ids_set.count(lootid)) - LootTemplates_Gameobject.ReportNotExistedId(lootid); - else - ids_setUsed.insert(lootid); + //if (!ids_set.count(lootid)) + // LootTemplates_Gameobject.ReportNotExistedId(lootid); + //else + // ids_setUsed.insert(lootid); + ids_setUsed.insert(lootid); } } } diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index fe3fd606de3..06f831898f4 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -1584,7 +1584,7 @@ void ObjectMgr::LoadGameobjects() break; default: sLog.outErrorDb("Gameobject (GUID: %u Entry %u GoType: %u) doesn't have displayId (%u), not loaded.", guid, entry, gInfo->type, gInfo->displayId); - continue; + break; } } -- cgit v1.2.3