Core/Misc: Refactor scripts to fix static analysis warnings
First batch of fixes targeting 100 issues reported by Coverity
This commit is contained in:
1 parent
681cf8f27c
commit
dd4dbdcd16
45 files changed
+1150
-450
No files matched your search
@@ -178,6 +178,12 @@ public:
|
||||
npc_cooshcooshAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
m_uiNormFaction = creature->getFaction();
|
||||
Initialize();
|
||||
}
|
||||
|
||||
void Initialize()
|
||||
{
|
||||
LightningBolt_Timer = 2000;
|
||||
}
|
||||
|
||||
uint32 m_uiNormFaction;
|
||||
@@ -185,7 +191,7 @@ public:
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
LightningBolt_Timer = 2000;
|
||||
Initialize();
|
||||
if (me->getFaction() != m_uiNormFaction)
|
||||
me->setFaction(m_uiNormFaction);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user