Skip to content

Commit

Permalink
Scripts/Misc: Fixed static analysis issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-Michael committed Jul 16, 2017
1 parent 3a1f666 commit b81c2e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/server/scripts/Kalimdor/zone_silithus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,7 @@ class npc_anachronos_the_ancient : public CreatureScript
me->GetMotionMaster()->MoveCharge(-8117.99f, 1532.24f, 3.94f, 4);
break;
case 60:
if (player)
Talk(ANACHRONOS_SAY_10, player);
Talk(ANACHRONOS_SAY_10, player);
me->GetMotionMaster()->MoveCharge(-8113.46f, 1524.16f, 2.89f, 4);
break;
case 61:
Expand Down
7 changes: 2 additions & 5 deletions src/server/scripts/Northrend/zone_grizzly_hills.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,8 @@ class npc_emily : public CreatureScript
}
break;
case 24:
if (player)
{
player->GroupEventHappens(QUEST_PERILOUS_ADVENTURE, me);
Talk(SAY_QUEST_COMPLETE, player);
}
player->GroupEventHappens(QUEST_PERILOUS_ADVENTURE, me);
Talk(SAY_QUEST_COMPLETE, player);
me->SetWalk(false);
break;
case 25:
Expand Down
3 changes: 1 addition & 2 deletions src/server/scripts/Outland/zone_shadowmoon_valley.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1199,8 +1199,7 @@ class npc_illidari_spawn : public CreatureScript
{
me->RemoveCorpse();
if (Creature* LordIllidan = (ObjectAccessor::GetCreature(*me, LordIllidanGUID)))
if (LordIllidan)
ENSURE_AI(npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI, LordIllidan->AI())->LiveCounter();
ENSURE_AI(npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI, LordIllidan->AI())->LiveCounter();
}

void UpdateAI(uint32 diff) override
Expand Down

0 comments on commit b81c2e7

Please sign in to comment.