mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Misc: Fix static analysis issues
Fix static analysis issues spotted by Coverity Scan
This commit is contained in:
@@ -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)) ||
|
||||
|
||||
Reference in New Issue
Block a user