Core/GameObject: Make chests (type 3) GOs active even if they have no loot if

a questID is defined and active for the player. It is possible for events to
happen even if the GO has no loot.
Original Author: NoFantasy
Optomized by: kamikazetg

--HG--
branch : trunk
This commit is contained in:
runningnak3d
2010-10-06 18:21:42 -06:00
parent debeea7f2a
commit 04566e5be9

View File

@@ -7869,7 +7869,7 @@ void ObjectMgr::LoadGameObjectForQuests()
uint32 loot_id = goInfo->GetLootId();
// find quest loot for GO
if (LootTemplates_Gameobject.HaveQuestLootFor(loot_id))
if (goInfo->chest.questId || LootTemplates_Gameobject.HaveQuestLootFor(loot_id))
{
mGameObjectForQuestSet.insert(go_entry);
++count;