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
@@ -43,12 +43,20 @@ class npc_pet_dk_ebon_gargoyle : public CreatureScript
|
||||
|
||||
struct npc_pet_dk_ebon_gargoyleAI : CasterAI
|
||||
{
|
||||
npc_pet_dk_ebon_gargoyleAI(Creature* creature) : CasterAI(creature) { }
|
||||
npc_pet_dk_ebon_gargoyleAI(Creature* creature) : CasterAI(creature)
|
||||
{
|
||||
Initialize();
|
||||
}
|
||||
|
||||
void InitializeAI() override
|
||||
void Initialize()
|
||||
{
|
||||
// Not needed to be despawned now
|
||||
_despawnTimer = 0;
|
||||
}
|
||||
|
||||
void InitializeAI() override
|
||||
{
|
||||
Initialize();
|
||||
|
||||
CasterAI::InitializeAI();
|
||||
uint64 ownerGuid = me->GetOwnerGUID();
|
||||
|
||||
Reference in new issue
Block a user