From 31bed934fe82884bdf4b8adeec84fcdcfe72a2dc Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Thu, 7 Jan 2016 16:27:14 -0800 Subject: [PATCH] fix bug caused by accidental reuse of variable -- queryAABox was often of size 1 rather than the correct dimensions --- libraries/shared/src/SpatiallyNestable.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/shared/src/SpatiallyNestable.cpp b/libraries/shared/src/SpatiallyNestable.cpp index 07d5ddeeb0..02b1c0c0ae 100644 --- a/libraries/shared/src/SpatiallyNestable.cpp +++ b/libraries/shared/src/SpatiallyNestable.cpp @@ -598,7 +598,8 @@ AACube SpatiallyNestable::getQueryAACube(bool& success) const { return _queryAACube; } success = false; - return AACube(getPosition(success) - glm::vec3(defaultAACubeSize / 2.0f), defaultAACubeSize); + bool getPositionSuccess; + return AACube(getPosition(getPositionSuccess) - glm::vec3(defaultAACubeSize / 2.0f), defaultAACubeSize); } AACube SpatiallyNestable::getQueryAACube() const {