aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/Spell.cpp
diff options
context:
space:
mode:
authorSubv <s.v.h21@hotmail.com>2012-09-05 14:54:12 -0700
committerSubv <s.v.h21@hotmail.com>2012-09-05 14:54:12 -0700
commit6ba88daa532d0d213ea80d421f7753566bf72b39 (patch)
tree0618e95fec466eda0151a9e91e95c41f5f0265a9 /src/server/game/Spells/Spell.cpp
parentccdca7774023e7570f17cf15456384b316322420 (diff)
parente7c0d8bef023a0b948602e2fc6b31fc68a120ac4 (diff)
Merge pull request #7669 from Chevron/mmaps_2
Core/MMaps: Applied Trinity Codestyle to PathGenerator.
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rwxr-xr-xsrc/server/game/Spells/Spell.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index 081056c1c79..0cbae416271 100755
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -5157,10 +5157,10 @@ SpellCastResult Spell::CheckCast(bool strict)
target->GetContactPoint(m_caster, pos.m_positionX, pos.m_positionY, pos.m_positionZ);
target->GetFirstCollisionPosition(pos, CONTACT_DISTANCE, target->GetRelativeAngle(m_caster));
- m_preGeneratedPath.setPathLengthLimit(m_spellInfo->GetMaxRange(true) * 1.5f);
+ m_preGeneratedPath.SetPathLengthLimit(m_spellInfo->GetMaxRange(true) * 1.5f);
m_preGeneratedPath.CalculatePath(pos.m_positionX, pos.m_positionY, pos.m_positionZ + target->GetObjectSize());
- if (m_preGeneratedPath.getPathType() & PATHFIND_SHORT)
+ if (m_preGeneratedPath.GetPathType() & PATHFIND_SHORT)
return SPELL_FAILED_OUT_OF_RANGE;
break;