Skip to content

Commit

Permalink
Fix GCC/Clang 'member will be initialized after' compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
evil-at-wow committed Jan 11, 2025
1 parent c698214 commit a477c19
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ EndScriptData */

instance_blood_furnace::instance_blood_furnace(Map* map) : ScriptedInstance(map),
m_uiBroggokEventTimer(90 * IN_MILLISECONDS),
m_uiBroggokEventDelay(0),
m_uiBroggokEventPhase(0),
m_uiRandYellTimer(90000),
m_crackTimer(30000),
m_uiBroggokEventDelay(0),
m_uiBroggokEventDelaySpawn(false)
{
Initialize();
Expand Down
2 changes: 1 addition & 1 deletion src/game/Entities/Creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Creature::Creature(CreatureSubtype subtype) : Unit(),
m_lootStatus(CREATURE_LOOT_STATUS_NONE),
m_corpseAccelerationDecayDelay(MINIMUM_LOOTING_TIME),
m_respawnTime(0), m_respawnDelay(25), m_respawnOverriden(false), m_respawnOverrideOnce(false), m_corpseDelay(60), m_canAggro(false),
m_respawnradius(5.0f), m_checkForHelp(true), m_interactionPauseTimer(0), m_subtype(subtype), m_defaultMovementType(IDLE_MOTION_TYPE),
m_checkForHelp(true), m_respawnradius(5.0f), m_interactionPauseTimer(0), m_subtype(subtype), m_defaultMovementType(IDLE_MOTION_TYPE),
m_equipmentId(0), m_detectionRange(20.f), m_AlreadyCallAssistance(false), m_canCallForAssistance(true),
m_temporaryFactionFlags(TEMPFACTION_NONE),
m_originalEntry(0), m_gameEventVendorId(0),
Expand Down
2 changes: 1 addition & 1 deletion src/game/MotionGenerators/PathMovementGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <algorithm>

AbstractPathMovementGenerator::AbstractPathMovementGenerator(const Movement::PointsArray& path, float orientation, int32 offset/* = 0*/, bool cyclic/* = true*/) :
m_pathIndex(offset), m_orientation(orientation), m_firstCycle(false), m_startPoint(0), m_speedChanged(false), m_cyclic(cyclic)
m_pathIndex(offset), m_orientation(orientation), m_cyclic(cyclic), m_firstCycle(false), m_startPoint(0), m_speedChanged(false)
{
for (size_t i = 0; i < path.size(); ++i)
m_path[i] = { path[i].x, path[i].y, path[i].z, ((i + 1) == path.size() ? orientation : 0), 0, 0 };
Expand Down
2 changes: 1 addition & 1 deletion src/game/Spells/Scripts/SpellScript.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct AuraCalcData
{
Unit* caster; Unit* target; SpellEntry const* spellProto; SpellEffectIndex effIdx; Item* castItem;
Aura* aura; // cannot be used in auras that utilize stacking in checkcast - can be nullptr
AuraCalcData(Aura* aura, Unit* caster, Unit* target, SpellEntry const* spellProto, SpellEffectIndex effIdx, Item* castItem) : caster(caster), target(target), spellProto(spellProto), effIdx(effIdx), aura(aura), castItem(castItem) {}
AuraCalcData(Aura* aura, Unit* caster, Unit* target, SpellEntry const* spellProto, SpellEffectIndex effIdx, Item* castItem) : caster(caster), target(target), spellProto(spellProto), effIdx(effIdx), castItem(castItem), aura(aura) {}
};

struct AuraScript
Expand Down
2 changes: 1 addition & 1 deletion src/game/Spells/SpellAuras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ Aura::Aura(SpellEntry const* spellproto, SpellEffectIndex eff, int32 const* curr
m_spellmod(nullptr), m_periodicTimer(0), m_periodicTick(0), m_removeMode(AURA_REMOVE_BY_DEFAULT),
m_effIndex(eff), m_positive(false), m_isPeriodic(false), m_isAreaAura(false),
m_isPersistent(false), m_magnetUsed(false), m_spellAuraHolder(holder),
m_scriptValue(0), m_storage(nullptr), m_scriptRef(this, NoopAuraDeleter()), m_affectOverriden(false)
m_scriptValue(0), m_storage(nullptr), m_affectOverriden(false), m_scriptRef(this, NoopAuraDeleter())
{
MANGOS_ASSERT(target);
MANGOS_ASSERT(spellproto && spellproto == sSpellTemplate.LookupEntry<SpellEntry>(spellproto->Id) && "`info` must be pointer to sSpellTemplate element");
Expand Down

0 comments on commit a477c19

Please sign in to comment.