diff options
author | jackpoz <giacomopoz@gmail.com> | 2019-04-02 20:11:27 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2019-04-02 20:11:27 +0200 |
commit | a12ea482f3eae340b54d09b7163e69524c422f06 (patch) | |
tree | f6fc3ef4d284c81239c12ec504dc821a6e73c6b4 /src | |
parent | daf9e1be03f6466a5593ebeb61263c2f29f93ee3 (diff) |
Core/Misc: Fix static analysis issues
Fix static analysis issues spotted by Coverity Scan
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Conditions/DisableMgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Conditions/DisableMgr.cpp b/src/server/game/Conditions/DisableMgr.cpp index d939db03255..8b6834172fb 100644 --- a/src/server/game/Conditions/DisableMgr.cpp +++ b/src/server/game/Conditions/DisableMgr.cpp @@ -36,7 +36,7 @@ namespace { struct DisableData { - uint8 flags; + uint16 flags; std::set<uint32> params[2]; // params0, params1 }; @@ -311,7 +311,7 @@ bool IsDisabledFor(DisableType type, uint32 entry, WorldObject const* ref, uint8 { case DISABLE_TYPE_SPELL: { - uint8 spellFlags = itr->second.flags; + uint16 spellFlags = itr->second.flags; if (ref) { if ((ref->GetTypeId() == TYPEID_PLAYER && (spellFlags & SPELL_DISABLE_PLAYER)) || |