Core/Misc: Fix static analysis issues

This commit is contained in:
jackpoz
2017-07-15 16:31:07 +02:00
parent b2a341df6e
commit 7d3291e804
2 changed files with 1 additions and 3 deletions

View File

@@ -973,7 +973,6 @@ BattlegroundTypeId BattlegroundMgr::GetRandomBG(BattlegroundTypeId bgTypeId)
{
if (BattlegroundTemplate const* bgTemplate = GetBattlegroundTemplateByTypeId(bgTypeId))
{
BattlegroundSelectionWeightMap selectionWeights;
std::vector<BattlegroundTypeId> ids;
ids.reserve(16);
std::vector<double> weights;

View File

@@ -1124,8 +1124,7 @@ class boss_grand_astromancer_capernian : public CreatureScript
//Conflagration_Timer
if (Conflagration_Timer <= diff)
{
Unit* target = nullptr;
target = SelectTarget(SELECT_TARGET_RANDOM, 0);
Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0);
if (target && me->IsWithinDistInMap(target, 30))
DoCast(target, SPELL_CONFLAGRATION);