* 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user