mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/DisableMgr: Fixed possible crashes at startup
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user