Core: fixed few coverity issues and warnings

This commit is contained in:
Aokromes
2016-04-03 08:04:26 +02:00
parent 30b80d6e82
commit 70697c6fce
7 changed files with 11 additions and 10 deletions

View File

@@ -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

View File

@@ -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();

View File

@@ -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;
};

View File

@@ -183,7 +183,7 @@ class spell_argaloth_meteor_slash : public SpellScriptLoader
}
private:
uint32 _targetCount;
uint32 _targetCount =0;
};
SpellScript* GetSpellScript() const override

View File

@@ -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

View File

@@ -114,7 +114,7 @@ class boss_corla : public CreatureScript
}
private:
bool combatPhase;
bool combatPhase =false;
};
CreatureAI* GetAI(Creature* creature) const override

View File

@@ -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;