Fix a crash in void reaver script

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2009-10-11 20:24:49 +02:00
parent 7e491b0fdd
commit 4064709366

View File

@@ -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;