aboutsummaryrefslogtreecommitdiff
path: root/src/game/LootMgr.cpp
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2009-12-22 03:30:18 +0100
committerXTZGZoReX <none@none>2009-12-22 03:30:18 +0100
commit306f9013c3bda75f5653bbfaaef14d5fa529352b (patch)
tree4b150adc026900d6c4b9b58c0a039eb098e7c4f9 /src/game/LootMgr.cpp
parentbd22b1a3a853f5c957d669f7161f43a17b1caecc (diff)
* Correction for 6706.
- If a GO template (type 3 and 25) has at least one spawn and a data1 set to a lootid, then error. If no spawns, silently ignore. --HG-- branch : trunk
Diffstat (limited to 'src/game/LootMgr.cpp')
-rw-r--r--src/game/LootMgr.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/game/LootMgr.cpp b/src/game/LootMgr.cpp
index d592092d5fe..1ad17b7f6fd 100644
--- a/src/game/LootMgr.cpp
+++ b/src/game/LootMgr.cpp
@@ -1253,11 +1253,10 @@ void LoadLootTemplates_Gameobject()
{
if (uint32 lootid = gInfo->GetLootId())
{
- //if (!ids_set.count(lootid))
- // LootTemplates_Gameobject.ReportNotExistedId(lootid);
- //else
- // ids_setUsed.insert(lootid);
- ids_setUsed.insert(lootid);
+ if (objmgr.IsGoOfSpecificEntrySpawned(gInfo->id) && !ids_set.count(lootid))
+ LootTemplates_Gameobject.ReportNotExistedId(lootid);
+ else
+ ids_setUsed.insert(lootid);
}
}
}