mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Core/Misc: Fix static analysis issues reported by Coverity Scan
(cherry picked from commit de88691e25)
This commit is contained in:
@@ -1140,7 +1140,7 @@ struct npc_sergeant_morigan : public CreatureScript
|
||||
|
||||
struct npc_sergeant_moriganAI : public NullCreatureAI
|
||||
{
|
||||
npc_sergeant_moriganAI(Creature* creature) : NullCreatureAI(creature), Started(false) { }
|
||||
npc_sergeant_moriganAI(Creature* creature) : NullCreatureAI(creature), Started(false), Question(0) { }
|
||||
|
||||
void InitializeAI() override
|
||||
{
|
||||
|
||||
@@ -1640,7 +1640,7 @@ struct npc_stratholme_rp_dummy : NullCreatureAI
|
||||
{
|
||||
if (type == POINT_MOTION_TYPE || type == EFFECT_MOTION_TYPE || type == SPLINE_CHAIN_MOTION_TYPE)
|
||||
if (TempSummon* self = me->ToTempSummon())
|
||||
self->GetSummonerCreatureBase()->AI()->MovementInform(type, id);
|
||||
ASSERT_NOTNULL(self->GetSummonerCreatureBase())->AI()->MovementInform(type, id);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -769,7 +769,7 @@ class boss_thorim : public CreatureScript
|
||||
for (auto itr = triggers.cbegin(); itr != triggers.cend();)
|
||||
{
|
||||
auto prev = itr++;
|
||||
if (itr != triggers.end())
|
||||
if (itr != triggers.cend())
|
||||
(*prev)->CastSpell(*itr, SPELL_LIGHTNING_BEAM_CHANNEL);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user