Core/Objects: Fixed uninitialized variables in FindCreatureOptions
This commit is contained in:
@@ -863,6 +863,9 @@ void MovementInfo::OutDebug()
|
||||
TC_LOG_DEBUG("misc", "standingOnGameObjectGUID: {}", standingOnGameObjectGUID->ToString());
|
||||
}
|
||||
|
||||
FindCreatureOptions::FindCreatureOptions() = default;
|
||||
FindCreatureOptions::~FindCreatureOptions() = default;
|
||||
|
||||
WorldObject::WorldObject(bool isWorldObject) : Object(), WorldLocation(), LastUsedScriptID(0),
|
||||
m_movementInfo(), m_name(), m_isActive(false), m_isFarVisible(false), m_isWorldObject(isWorldObject), m_zoneScript(nullptr),
|
||||
m_transport(nullptr), m_zoneId(0), m_areaId(0), m_staticFloorZ(VMAP_INVALID_HEIGHT), m_outdoors(false), m_liquidStatus(LIQUID_MAP_NO_WATER),
|
||||
|
||||
@@ -434,7 +434,8 @@ class FlaggedValuesArray32
|
||||
|
||||
struct FindCreatureOptions
|
||||
{
|
||||
FindCreatureOptions() = default;
|
||||
FindCreatureOptions();
|
||||
~FindCreatureOptions();
|
||||
|
||||
FindCreatureOptions& SetCreatureId(uint32 creatureId) { CreatureId = creatureId; return *this; }
|
||||
FindCreatureOptions& SetStringId(std::string_view stringId) { StringId = stringId; return *this; }
|
||||
@@ -461,9 +462,9 @@ struct FindCreatureOptions
|
||||
Optional<bool> IsInCombat;
|
||||
Optional<bool> IsSummon;
|
||||
|
||||
bool IgnorePhases;
|
||||
bool IgnoreNotOwnedPrivateObjects;
|
||||
bool IgnorePrivateObjects;
|
||||
bool IgnorePhases = false;
|
||||
bool IgnoreNotOwnedPrivateObjects = true;
|
||||
bool IgnorePrivateObjects = false;
|
||||
|
||||
Optional<uint32> AuraSpellId;
|
||||
Optional<ObjectGuid> OwnerGuid;
|
||||
|
||||
Reference in New Issue
Block a user