diff --git a/indra/newview/llagentui.cpp b/indra/newview/llagentui.cpp
index 41c8066aca4fed7ee960f379834f4737f3c654ba..2911a35581b86944901167a2e26bb4eeea0dbec5 100644
--- a/indra/newview/llagentui.cpp
+++ b/indra/newview/llagentui.cpp
@@ -92,8 +92,8 @@ std::string LLAgentUI::buildSLURL(const bool escaped /*= true*/)
 //static
 BOOL LLAgentUI::checkAgentDistance(const LLVector3& pole, F32 radius)
 {
-	S32 delta_x = gAgent.getPositionAgent().mV[VX] - pole.mV[VX];
-	S32 delta_y = gAgent.getPositionAgent().mV[VY] - pole.mV[VY];
+	F32 delta_x = gAgent.getPositionAgent().mV[VX] - pole.mV[VX];
+	F32 delta_y = gAgent.getPositionAgent().mV[VY] - pole.mV[VY];
 	
 	return  sqrt( delta_x* delta_x + delta_y* delta_y ) < radius;
 }