Core/Misc: Fix issues reported by static analysis

Coverity defect IDs: 1292769, 1292768, 1292765, 1292763, 1267939
This commit is contained in:
jackpoz
2015-04-04 15:28:13 +02:00
parent c38d4f57b3
commit 2dc97e3f3d
5 changed files with 14 additions and 5 deletions

View File

@@ -361,7 +361,10 @@ public:
struct npc_demolitionist_legosoAI : public npc_escortAI
{
npc_demolitionist_legosoAI(Creature* creature) : npc_escortAI(creature) { }
npc_demolitionist_legosoAI(Creature* creature) : npc_escortAI(creature)
{
Initialize();
}
void sQuestAccept(Player* player, Quest const* quest) override
{
@@ -395,11 +398,16 @@ public:
}
}
void Reset() override
void Initialize()
{
_phase = PHASE_NONE;
_moveTimer = 0;
_eventStarterGuidLow = 0;
}
void Reset() override
{
Initialize();
me->SetCanDualWield(true);
_events.Reset();