aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKudlaty <none@none>2009-11-29 18:41:09 +0100
committerKudlaty <none@none>2009-11-29 18:41:09 +0100
commit49fffe9da755f5f73422e44b25ab947bf16d0817 (patch)
treef05a2148b8f6c7e728dc1ccae3b6a2ff46383129 /src
parent6af998933f739fa294103cd50a75f87c8a4427a2 (diff)
Fix possible crash
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/northrend/zuldrak.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bindings/scripts/scripts/northrend/zuldrak.cpp b/src/bindings/scripts/scripts/northrend/zuldrak.cpp
index c51bf14f65a..28407adfc65 100644
--- a/src/bindings/scripts/scripts/northrend/zuldrak.cpp
+++ b/src/bindings/scripts/scripts/northrend/zuldrak.cpp
@@ -69,7 +69,8 @@ struct TRINITY_DLL_DECL npc_drakuru_shacklesAI : public ScriptedAI
else
{
DoCast(Rageclaw, SPELL_FREE_RAGECLAW, true);
- CAST_PLR(pWho)->CastSpell(Rageclaw, SPELL_UNLOCK_SHACKLE, true);
+ if (pWho->GetTypeId() == TYPEID_PLAYER)
+ CAST_PLR(pWho)->CastSpell(Rageclaw, SPELL_UNLOCK_SHACKLE, true);
m_creature->setDeathState(DEAD);
}
}