--- a/src/game/Unit.cpp Thu Aug 30 13:47:23 2012 +0200
+++ b/src/game/Unit.cpp Sun Sep 02 14:08:30 2012 +0400
@@ -11386,7 +11386,7 @@
bool turn = (GetOrientation() != orientation);
bool relocated = (teleport || GetPositionX() != x || GetPositionY() != y || GetPositionZ() != z);
- SpellAuraInterruptFlags interruptFlags;
+ SpellAuraInterruptFlags interruptFlags = AURA_INTERRUPT_FLAG_NONE;
if (relocated)
{
interruptFlags = SpellAuraInterruptFlags(interruptFlags | AURA_INTERRUPT_FLAG_MOVE | AURA_INTERRUPT_FLAG_NOT_SEATED);
diff -r 87e4f879e4e1 src/game/Unit.h
--- a/src/game/Unit.h Thu Aug 30 13:47:23 2012 +0200
+++ b/src/game/Unit.h Sun Sep 02 14:08:30 2012 +0400
@@ -61,6 +61,7 @@
enum SpellAuraInterruptFlags
{
+ AURA_INTERRUPT_FLAG_NONE = 0x00000000,
AURA_INTERRUPT_FLAG_HITBYSPELL = 0x00000001, // 0 removed when getting hit by a negative spell?
AURA_INTERRUPT_FLAG_DAMAGE = 0x00000002, // 1 removed by any damage
AURA_INTERRUPT_FLAG_CC = 0x00000004, // 2 crowd controlAdd a code snippet to your website: www.paste.org