diff options
author | ariel- <ariel-@users.noreply.github.com> | 2017-06-20 18:31:36 +0200 |
---|---|---|
committer | Carbenium <carbenium@outlook.com> | 2020-07-16 22:00:30 +0200 |
commit | d73e4015d1984047e708c4e5e2582dc0dc90cd7f (patch) | |
tree | 4b4f9c61b40338bdfd70fdd4034d5e9ac760b62d | |
parent | 692ec8e7c1aa7e3920b3320c9b3bde94a5ce5d02 (diff) |
Core/Spells: fixed crash
Closes #19924
(cherry picked from commit 9f765a162092e8b65cc9bc924e0c456f719b3678)
-rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 3ffab7e8f33..6fe90ed75cd 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -4201,7 +4201,7 @@ void Spell::EffectCharge(SpellEffIndex /*effIndex*/) spellEffectExtraData->SpellVisualId = effectInfo->MiscValueB; } // Spell is not using explicit target - no generated path - if (m_preGeneratedPath->GetPathType() == PATHFIND_BLANK) + if (!m_preGeneratedPath) { //unitTarget->GetContactPoint(m_caster, pos.m_positionX, pos.m_positionY, pos.m_positionZ); Position pos = unitTarget->GetFirstCollisionPosition(unitTarget->GetCombatReach(), unitTarget->GetRelativeAngle(m_caster)); |