Fix spellaura-crash

Fixes #1767, closes #1772 (and the other ones already merged into it)

--HG--
branch : trunk
This commit is contained in:
click
2010-04-20 03:30:27 +02:00
parent a5500fd7f1
commit b34e2bdb1c

View File

@@ -558,9 +558,7 @@ void Aura::UpdateOwner(uint32 diff, WorldObject * owner)
Player * modOwner = NULL;
if (caster)
{
modOwner = caster->GetSpellModOwner();
modSpell = modOwner->FindCurrentSpellBySpellId(GetId());
if (modOwner && modSpell)
if ((modOwner = caster->GetSpellModOwner()) && (modSpell = modOwner->FindCurrentSpellBySpellId(GetId())))
modOwner->SetSpellModTakingSpell(modSpell, true);
}