Core: fixed some warnings

This commit is contained in:
Ovahlord committed 2019-07-25 01:16:55 +02:00
1 parent 01cca0513f
commit 9435d6aeb2
5 files changed
+14 -5

No files matched your search

+2 -2
View File
@@ -1181,8 +1181,8 @@ void MovementInfo::OutDebug()
WorldObject::WorldObject(bool isWorldObject) : WorldLocation(), LastUsedScriptID(0),
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_currMap(nullptr), m_InstanceId(0),
m_phaseMask(PHASEMASK_NORMAL), _dbPhase(0), m_notifyflags(0), m_executed_notifies(0),
m_transport(nullptr), m_zoneId(0), m_areaId(0), m_staticFloorZ(VMAP_INVALID_HEIGHT), m_outdoors(true; m_currMap(nullptr),
m_InstanceId(0), m_phaseMask(PHASEMASK_NORMAL), _dbPhase(0), m_notifyflags(0), m_executed_notifies(0),
m_aiAnimKitId(0), m_movementAnimKitId(0), m_meleeAnimKitId(0)
{
m_serverSideVisibility.SetValue(SERVERSIDE_VISIBILITY_GHOST, GHOST_VISIBILITY_ALIVE | GHOST_VISIBILITY_GHOST);
+5
View File
@@ -1001,6 +1001,11 @@ struct PlayerTalentInfo
struct TalentSpecInfo
{
TalentSpecInfo() : Talents(nullptr), TalentTree(0)
{
memset(Glyphs, 0, MAX_GLYPH_SLOT_INDEX * sizeof(uint32));
}
PlayerTalentMap* Talents;
uint32 Glyphs[MAX_GLYPH_SLOT_INDEX];
uint32 TalentTree;
@@ -78,6 +78,8 @@ enum VehicleSpells
struct PassengerInfo
{
PassengerInfo() : IsUnselectable(false) { }
ObjectGuid Guid;
bool IsUnselectable;
+4 -2
View File
@@ -264,8 +264,10 @@ public:
SpellEffectInfo() : _spellInfo(nullptr), _effIndex(0), Effect(0), ApplyAuraName(0), Amplitude(0), DieSides(0),
RealPointsPerLevel(0), BasePoints(0), PointsPerComboPoint(0), ValueMultiplier(0), DamageMultiplier(0),
BonusMultiplier(0), MiscValue(0), MiscValueB(0), Mechanic(MECHANIC_NONE), RadiusEntry(nullptr), ChainTarget(0),
ItemType(0), TriggerSpell(0), ImplicitTargetConditions(nullptr) {}
BonusMultiplier(0), MiscValue(0), MiscValueB(0), Mechanic(MECHANIC_NONE), RadiusEntry(nullptr), MaxRadiusEntry(nullptr),
ChainTarget(0), ItemType(0), TriggerSpell(0), ImplicitTargetConditions(nullptr), ScalingMultiplier(0), DeltaScalingMultiplier(0),
ComboScalingMultiplier(0) { }
SpellEffectInfo(SpellEntry const* spellEntry, SpellInfo const* spellInfo, uint8 effIndex, SpellEffectEntry const* effect);
bool IsEffect() const;
+1 -1
View File
@@ -1651,7 +1651,7 @@ class spell_sha_healing_rain_triggered : public SpellScript
OnEffectHitTarget += SpellEffectFn(spell_sha_healing_rain_triggered::HandleHeal, EFFECT_0, SPELL_EFFECT_HEAL);
}
private:
uint8 _targets;
uint8 _targets = 0;
};
class spell_sha_earthliving_weapon : public SpellScriptLoader