aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-06-20 13:31:36 -0300
committerariel- <ariel-@users.noreply.github.com>2017-06-20 13:31:36 -0300
commit9f765a162092e8b65cc9bc924e0c456f719b3678 (patch)
tree8def9426a5267859f60321305e64d77faeef74b0 /src
parentfaf299459bb96355b8c5d86add3a22ae4bcd0491 (diff)
Core/Spells: fixed crash
Closes #19924
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 21ed4ceec23..1b2847599f8 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -4637,7 +4637,7 @@ void Spell::EffectCharge(SpellEffIndex /*effIndex*/)
float speed = G3D::fuzzyGt(m_spellInfo->Speed, 0.0f) ? m_spellInfo->Speed : SPEED_CHARGE;
// 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));