mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Core: fixed few coverity issues and warnings
This commit is contained in:
@@ -134,9 +134,9 @@ namespace Battlenet
|
||||
void CallHandler(Session* session) override;
|
||||
|
||||
PacketHeader Header;
|
||||
ClosingReason Reason;
|
||||
ClosingReason Reason = PACKET_CORRUPT;
|
||||
std::vector<PacketInfo> Packets;
|
||||
time_t Now;
|
||||
time_t Now = 0;
|
||||
};
|
||||
|
||||
class Pong final : public ServerPacket
|
||||
|
||||
@@ -1014,6 +1014,7 @@ SpellInfo::SpellInfo(SpellEntry const* spellEntry, SpellEffectEntry const** effe
|
||||
Targets = _target ? _target->Targets : 0;
|
||||
TargetCreatureType = _target ? _target->TargetCreatureType : 0;
|
||||
MaxAffectedTargets = _target ? _target->MaxAffectedTargets : 0;
|
||||
MaxTargetLevel = _target ? _target->MaxTargetLevel : 0;
|
||||
|
||||
// SpellTotemsEntry
|
||||
SpellTotemsEntry const* _totem = GetSpellTotems();
|
||||
|
||||
@@ -251,9 +251,9 @@ class boss_alizabal : public CreatureScript
|
||||
}
|
||||
|
||||
private:
|
||||
bool _intro;
|
||||
bool _hate;
|
||||
bool _skewer;
|
||||
bool _intro =false;
|
||||
bool _hate =false;
|
||||
bool _skewer =false;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ class spell_argaloth_meteor_slash : public SpellScriptLoader
|
||||
}
|
||||
|
||||
private:
|
||||
uint32 _targetCount;
|
||||
uint32 _targetCount =0;
|
||||
};
|
||||
|
||||
SpellScript* GetSpellScript() const override
|
||||
|
||||
@@ -213,7 +213,7 @@ public: npc_twilight_flame_caller() : CreatureScript("npc_twilight_flame_caller"
|
||||
ObjectGuid _flamecaller1GUID;
|
||||
ObjectGuid _flamecaller2GUID;
|
||||
SummonList _summons;
|
||||
bool _combatPhase;
|
||||
bool _combatPhase =false;
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
|
||||
@@ -114,7 +114,7 @@ class boss_corla : public CreatureScript
|
||||
}
|
||||
|
||||
private:
|
||||
bool combatPhase;
|
||||
bool combatPhase =false;
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
|
||||
@@ -72,8 +72,8 @@ class instance_deadmines : public InstanceMapScript
|
||||
ObjectGuid MrSmiteGUID;
|
||||
|
||||
uint32 State;
|
||||
uint32 CannonBlast_Timer;
|
||||
uint32 PiratesDelay_Timer;
|
||||
uint32 CannonBlast_Timer =0;
|
||||
uint32 PiratesDelay_Timer =0;
|
||||
uint32 SmiteAlarmDelay_Timer;
|
||||
ObjectGuid uiSmiteChestGUID;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user