diff options
Diffstat (limited to 'indra/llmath')
-rw-r--r-- | indra/llmath/lloctree.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/indra/llmath/lloctree.h b/indra/llmath/lloctree.h index 69ff43452c..bea21e22c6 100644 --- a/indra/llmath/lloctree.h +++ b/indra/llmath/lloctree.h @@ -170,17 +170,10 @@ public: static void pushCenter(LLVector3d ¢er, LLVector3d &size, T* data) { - LLVector3 pos(data->getPositionGroup()); - F64 p[] = - { - (F64) pos.mV[0], - (F64) pos.mV[1], - (F64) pos.mV[2] - }; - + LLVector3d pos(data->getPositionGroup()); for (U32 i = 0; i < 3; i++) { - if (p[i] > center.mdV[i]) + if (pos.mdV[i] > center.mdV[i]) { center.mdV[i] += size.mdV[i]; } |