Skip to content

Commit

Permalink
Scripts/Misc: Fix issues reported by static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpoz committed Mar 6, 2016
1 parent 7fe5a77 commit 510bb30
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Expand Up @@ -59,6 +59,7 @@ class instance_deadmines : public InstanceMapScript
State = CANNON_NOT_USED;
CannonBlast_Timer = 0;
PiratesDelay_Timer = 0;
SmiteAlarmDelay_Timer = 0;
}

ObjectGuid FactoryDoorGUID;
Expand Down
Expand Up @@ -421,7 +421,7 @@ class boss_lady_deathwhisper : public CreatureScript

void UpdateAI(uint32 diff) override
{
if ((!UpdateVictim() && !events.IsInPhase(PHASE_INTRO)))
if (!UpdateVictim() && !events.IsInPhase(PHASE_INTRO))
return;

events.Update(diff);
Expand Down
Expand Up @@ -562,7 +562,7 @@ class boss_professor_putricide : public CreatureScript

void UpdateAI(uint32 diff) override
{
if ((!(events.IsInPhase(PHASE_ROTFACE) || events.IsInPhase(PHASE_FESTERGUT)) && !UpdateVictim()))
if (!(events.IsInPhase(PHASE_ROTFACE) || events.IsInPhase(PHASE_FESTERGUT)) && !UpdateVictim())
return;

events.Update(diff);
Expand Down
1 change: 1 addition & 0 deletions src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp
Expand Up @@ -289,6 +289,7 @@ class boss_alar : public CreatureScript
me->SetPosition(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), 0.0f);
me->StopMoving();
WaitEvent = WE_LAND;
return;
}
else
{
Expand Down

0 comments on commit 510bb30

Please sign in to comment.