Core/Misc: Fix static analysis issues

Fix static analysis issues spotted by Coverity Scan

(cherry picked from commit a12ea482f3eae340b54d09b7163e69524c422f06)
This commit is contained in:
jackpoz
2021-11-24 23:45:27 +01:00
committed by Shauren
parent f4300f69a3
commit 71cb10afe0
+2 -2
View File
@@ -45,7 +45,7 @@ namespace
{
struct DisableData
{
uint8 flags;
uint16 flags;
std::unordered_set<uint32> params[2]; // params0, params1
};
@@ -287,7 +287,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)) ||