aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-28 11:24:50 -0600
committermegamage <none@none>2009-03-28 11:24:50 -0600
commit196a1296128ffcc30fdd16be1534b0db7332669c (patch)
tree52035fb06ed438f179d93d7f0cff8befe2fed579 /src
parent6e33427a114e9702f1152cc70b8316ce43b56e13 (diff)
*Fix a crash caused by eventai emote.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/creature/mob_event_ai.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bindings/scripts/scripts/creature/mob_event_ai.cpp b/src/bindings/scripts/scripts/creature/mob_event_ai.cpp
index cd296910d2c..46adc7f91f2 100644
--- a/src/bindings/scripts/scripts/creature/mob_event_ai.cpp
+++ b/src/bindings/scripts/scripts/creature/mob_event_ai.cpp
@@ -1433,6 +1433,9 @@ CreatureAI* GetAI_mob_eventai(Creature* pCreature)
bool ReceiveEmote_mob_eventai(Player* pPlayer, Creature* pCreature, uint32 uiEmote)
{
+ if(pCreature->isCharmed())
+ return true;
+
Mob_EventAI* pTmpCreature = (Mob_EventAI*)(pCreature->AI());
if (pTmpCreature->bEmptyList)