[10589] Always activate GO type 3 when quest id is defined (and active)

GO may be "lootless", but events at looting can happen

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-10-08 10:21:27 +02:00
parent fc2e66231b
commit b0d5e3e51a
3 changed files with 12 additions and 3 deletions

View file

@ -7725,8 +7725,14 @@ void ObjectMgr::LoadGameObjectForQuests()
{
uint32 loot_id = goInfo->GetLootId();
// always activate to quest, GO may not have loot
if (goInfo->chest.questId)
{
mGameObjectForQuestSet.insert(go_entry);
++count;
}
// find quest loot for GO
if(LootTemplates_Gameobject.HaveQuestLootFor(loot_id))
else if (LootTemplates_Gameobject.HaveQuestLootFor(loot_id))
{
mGameObjectForQuestSet.insert(go_entry);
++count;