mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +00:00
[8236] Implemented explicit remove of Aura by pointer to it (used for single cast auras).
* This can prevent removing single cast aura of same id and effect but different caster what can cause assert in next code. Thanks Vladimir for hints. Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
18ae2de853
commit
6b2b58cec9
4 changed files with 20 additions and 6 deletions
|
|
@ -6952,9 +6952,7 @@ void Aura::UnregisterSingleCastAura()
|
|||
{
|
||||
if (IsSingleTarget())
|
||||
{
|
||||
Unit* caster = NULL;
|
||||
caster = GetCaster();
|
||||
if(caster)
|
||||
if(Unit* caster = GetCaster())
|
||||
{
|
||||
caster->GetSingleCastAuras().remove(this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue