diff options
author | megamage <none@none> | 2009-05-07 18:06:20 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-07 18:06:20 -0500 |
commit | 5b9dae20b11243a19c37570392ab25a4bcdd63cd (patch) | |
tree | 5e2c350c4f2803f5829da34719d1d61eb64cbf55 /src/game/Spell.cpp | |
parent | 3dc839536ae74e264fbe553ec257a220ff6b0156 (diff) |
*Fix build. By Kudlaty.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 664e52b26c0..2227bc4c92b 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1598,8 +1598,8 @@ void Spell::SetTargetMap(uint32 i, uint32 cur) case TARGET_UNIT_CASTER_FISHING: { AddUnitTarget(m_caster, i); - float min_dis = GetSpellMinRange(m_spellInfo, true); - float max_dis = GetSpellMaxRange(m_spellInfo, true); + float min_dis = GetSpellMinRange(sSpellRangeStore.LookupEntry(m_spellInfo->rangeIndex)); + float max_dis = GetSpellMaxRange(sSpellRangeStore.LookupEntry(m_spellInfo->rangeIndex)); float dis = rand_norm() * (max_dis - min_dis) + min_dis; float x, y, z; m_caster->GetClosePoint(x, y, z, DEFAULT_WORLD_OBJECT_SIZE, dis); |