diff options
author | Shauren <shauren.trinity@gmail.com> | 2011-11-23 19:55:05 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2011-11-23 19:55:05 +0100 |
commit | afb2289d02fa3d7357b36aaf9065ddc579d00fc9 (patch) | |
tree | cffdea0f3104cb4cbfeeb5ec7f0296d3528609d2 /src/server/game/Conditions/DisableMgr.cpp | |
parent | f116960b2a7ca5f7a24378f13ef395d3c09c9ef4 (diff) |
Core/DisableMgr: Fixed possible crashes at startup
Diffstat (limited to 'src/server/game/Conditions/DisableMgr.cpp')
-rwxr-xr-x | src/server/game/Conditions/DisableMgr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Conditions/DisableMgr.cpp b/src/server/game/Conditions/DisableMgr.cpp index 103781cc49c..32c73027cba 100755 --- a/src/server/game/Conditions/DisableMgr.cpp +++ b/src/server/game/Conditions/DisableMgr.cpp @@ -309,8 +309,9 @@ bool IsDisabledFor(DisableType type, uint32 entry, Unit const* unit, uint8 flags return false; } - else if (flags & SPELL_DISABLE_DEPRECATED_SPELL) // call not from spellcast + else if (spellFlags & SPELL_DISABLE_DEPRECATED_SPELL) // call not from spellcast return true; + break; } case DISABLE_TYPE_MAP: if (Player const* player = unit->ToPlayer()) |