Core/Misc: Add missing virtual destructors

This commit is contained in:
Shauren
2023-08-22 12:38:55 +02:00
parent 6082f8f878
commit f4297aa3c6
3 changed files with 6 additions and 1 deletions

View File

@@ -218,6 +218,7 @@ enum SpecResetType
struct SpellModifier
{
SpellModifier(Aura* _ownerAura) : op(SpellModOp::HealingAndDamage), type(SPELLMOD_FLAT), spellId(0), ownerAura(_ownerAura) { }
virtual ~SpellModifier() = default;
SpellModOp op;
SpellModType type;

View File

@@ -74,6 +74,8 @@ GridState* si_GridStates[MAX_GRID_STATE];
ZoneDynamicInfo::ZoneDynamicInfo() : MusicId(0), DefaultWeather(nullptr), WeatherId(WEATHER_STATE_FINE),
Intensity(0.0f) { }
RespawnInfo::~RespawnInfo() = default;
struct RespawnInfoWithHandle;
struct RespawnListContainer : boost::heap::fibonacci_heap<RespawnInfoWithHandle*, boost::heap::compare<CompareRespawnInfo>>
{

View File

@@ -158,8 +158,10 @@ struct CompareRespawnInfo
using ZoneDynamicInfoMap = std::unordered_map<uint32 /*zoneId*/, ZoneDynamicInfo>;
struct RespawnListContainer;
using RespawnInfoMap = std::unordered_map<ObjectGuid::LowType, RespawnInfo*>;
struct RespawnInfo
struct TC_GAME_API RespawnInfo
{
virtual ~RespawnInfo();
SpawnObjectType type;
ObjectGuid::LowType spawnId;
uint32 entry;