diff options
author | megamage <none@none> | 2009-05-17 10:09:06 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-17 10:09:06 -0500 |
commit | d99e66d93125f991c638c192f6322df915cefbd9 (patch) | |
tree | cf5a250e4839afab8a8cb8bde7db88244faca610 /src/game/GridNotifiersImpl.h | |
parent | 98e32a041d08734c3ddbedf527491ec2bdee76b0 (diff) |
[7836] Fixes for distance range checks. Author: VladimirMangos
* ignore 0.0f min range limit (this correct case when 2 object overlapped)
Also use int32 for temporary store GetSessionDbLocaleIndex result.
--HG--
branch : trunk
Diffstat (limited to 'src/game/GridNotifiersImpl.h')
-rw-r--r-- | src/game/GridNotifiersImpl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/GridNotifiersImpl.h b/src/game/GridNotifiersImpl.h index 12f3706c4e2..d4413b9f777 100644 --- a/src/game/GridNotifiersImpl.h +++ b/src/game/GridNotifiersImpl.h @@ -576,7 +576,7 @@ void Trinity::PlayerSearcher<Check>::Visit(PlayerMapType &m) template<class Builder> void MaNGOS::LocalizedPacketDo<Builder>::operator()( Player* p ) { - uint32 loc_idx = p->GetSession()->GetSessionDbLocaleIndex(); + int32 loc_idx = p->GetSession()->GetSessionDbLocaleIndex(); uint32 cache_idx = loc_idx+1; WorldPacket* data; @@ -601,7 +601,7 @@ void MaNGOS::LocalizedPacketDo<Builder>::operator()( Player* p ) template<class Builder> void MaNGOS::LocalizedPacketListDo<Builder>::operator()( Player* p ) { - uint32 loc_idx = p->GetSession()->GetSessionDbLocaleIndex(); + int32 loc_idx = p->GetSession()->GetSessionDbLocaleIndex(); uint32 cache_idx = loc_idx+1; WorldPacketList* data_list; |