Core/Misc: Fix issues reported by static analysis
This commit is contained in:
1 parent
5d835e4526
commit
0c5007efe9
3 files changed
+3
-1
No files matched your search
@@ -177,7 +177,7 @@ void SimpleCharmedPlayerAI::UpdateAI(const uint32 /*diff*/)
|
||||
for (Player::AuraEffectList::const_iterator iter = auras.begin(); iter != auras.end(); ++iter)
|
||||
if ((*iter)->GetCasterGUID() == charmer->GetGUID() && (*iter)->GetBase()->IsPermanent())
|
||||
{
|
||||
me->Kill(me);
|
||||
me->KillSelf();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user