* 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
This commit is contained in:
XTZGZoReX
2009-12-22 03:30:18 +01:00
parent bd22b1a3a8
commit 306f9013c3
2 changed files with 13 additions and 5 deletions
+9
View File
@@ -767,6 +767,15 @@ class ObjectMgr
return &itr->second;
}
bool IsGoOfSpecificEntrySpawned(uint32 entry) const
{
for (GameObjectDataMap::const_iterator it = mGameObjectDataMap.begin(); it != mGameObjectDataMap.end(); ++it)
if (it->second.id == entry)
return true;
return false;
}
GameObjectData const* GetGOData(uint32 guid) const
{
GameObjectDataMap::const_iterator itr = mGameObjectDataMap.find(guid);