diff --git a/include/mitsuba/core/aabb.h b/include/mitsuba/core/aabb.h index 043fdd5f..6a9ef24b 100644 --- a/include/mitsuba/core/aabb.h +++ b/include/mitsuba/core/aabb.h @@ -101,7 +101,7 @@ template struct TAABB { /// Calculate the n-dimensional volume of the bounding box inline value_type getVolume() const { vector_type diff = max-min; - value_type result = diff[1]; + value_type result = diff[0]; for (int i=1; i