aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-10-11 20:24:49 +0200
committerMachiavelli <none@none>2009-10-11 20:24:49 +0200
commit406470936619f6c57108e0bb760be3c1478ec4d1 (patch)
tree9d7f852f831f8440913ac56f675bec8b59530cc9 /src
parent7e491b0fdd2b89b587297e8c53a4a55931443e9e (diff)
Fix a crash in void reaver script
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/outland/tempest_keep/the_eye/boss_void_reaver.cpp3
1 files changed, 3 insertions, 0 deletions
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<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;