From 49a735e0515c77a2957cc0fec9ad7f4a18175c86 Mon Sep 17 00:00:00 2001 From: James Urquhart Date: Fri, 13 May 2016 12:09:40 +0100 Subject: [PATCH] Fix axis check in Box3F::extend method --- Engine/source/math/mBox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/math/mBox.h b/Engine/source/math/mBox.h index 379d5291a..b81775bb0 100644 --- a/Engine/source/math/mBox.h +++ b/Engine/source/math/mBox.h @@ -415,7 +415,7 @@ inline void Box3F::extend(const Point3F & p) #define EXTEND_AXIS(AXIS) \ if (p.AXIS < minExtents.AXIS) \ minExtents.AXIS = p.AXIS; \ -else if (p.AXIS > maxExtents.AXIS) \ +if (p.AXIS > maxExtents.AXIS) \ maxExtents.AXIS = p.AXIS; EXTEND_AXIS(x)