mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01:00
Fix a crash in void reaver script
--HG-- branch : trunk
This commit is contained in:
@@ -123,6 +123,9 @@ struct TRINITY_DLL_DECL boss_void_reaverAI : public ScriptedAI
|
||||
for(std::list<HostilReference *>::iterator itr = t_list.begin(); itr!= t_list.end(); ++itr)
|
||||
{
|
||||
target = Unit::GetUnit(*m_creature, (*itr)->getUnitGuid());
|
||||
if (!target)
|
||||
continue;
|
||||
|
||||
// exclude pets & totems
|
||||
if (target->GetTypeId() != TYPEID_PLAYER)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user