From 406470936619f6c57108e0bb760be3c1478ec4d1 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Sun, 11 Oct 2009 20:24:49 +0200 Subject: Fix a crash in void reaver script --HG-- branch : trunk --- .../scripts/scripts/outland/tempest_keep/the_eye/boss_void_reaver.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/bindings/scripts') diff --git a/src/bindings/scripts/scripts/outland/tempest_keep/the_eye/boss_void_reaver.cpp b/src/bindings/scripts/scripts/outland/tempest_keep/the_eye/boss_void_reaver.cpp index 60cfaf1609d..9ecb54972d1 100644 --- a/src/bindings/scripts/scripts/outland/tempest_keep/the_eye/boss_void_reaver.cpp +++ b/src/bindings/scripts/scripts/outland/tempest_keep/the_eye/boss_void_reaver.cpp @@ -123,6 +123,9 @@ struct TRINITY_DLL_DECL boss_void_reaverAI : public ScriptedAI for(std::list::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; -- cgit v1.2.3