aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llhudeffectpointat.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llhudeffectpointat.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/linden/indra/newview/llhudeffectpointat.cpp b/linden/indra/newview/llhudeffectpointat.cpp
index d4fc57d..35131cc 100644
--- a/linden/indra/newview/llhudeffectpointat.cpp
+++ b/linden/indra/newview/llhudeffectpointat.cpp
@@ -441,8 +441,10 @@ bool LLHUDEffectPointAt::calcTargetPosition()
441 441
442 mTargetPos -= mSourceObject->getRenderPosition(); 442 mTargetPos -= mSourceObject->getRenderPosition();
443 443
444 if (!mTargetPos.isFinite()) 444 if (!llfinite(mTargetPos.lengthSquared()))
445 {
445 return false; 446 return false;
447 }
446 448
447 if (mSourceObject->isAvatar()) 449 if (mSourceObject->isAvatar())
448 { 450 {