Add a LOG_WARN when attempting to summon a non-existing summon group.
This commit is contained in:
1 parent
ee10877d52
commit
7279304c7c
1 file changed
+3
@@ -2242,7 +2242,10 @@ void WorldObject::SummonCreatureGroup(uint8 group, std::list<TempSummon*>* list
|
||||
|
||||
std::vector<TempSummonData> const* data = sObjectMgr->GetSummonGroup(GetEntry(), GetTypeId() == TYPEID_GAMEOBJECT ? SUMMONER_TYPE_GAMEOBJECT : SUMMONER_TYPE_CREATURE, group);
|
||||
if (!data)
|
||||
{
|
||||
TC_LOG_WARN("scripts", "%s (%s) tried to summon non-existing summon group %u.", GetName(), GetGUID().ToString(), group);
|
||||
return;
|
||||
}
|
||||
|
||||
for (std::vector<TempSummonData>::const_iterator itr = data->begin(); itr != data->end(); ++itr)
|
||||
if (TempSummon* summon = SummonCreature(itr->entry, itr->pos, itr->type, itr->time))
|
||||
|
||||
Reference in new issue
Block a user