From a2547bf1fe447dd7197791803b64ef085a1b4a1a Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Thu, 8 Aug 2019 19:49:00 +0100 Subject: cBoundingBox: Fix tolua warning (#4361) tolua was warning about no support for `operator =`. Ref: #4360 --- src/BoundingBox.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/BoundingBox.h') diff --git a/src/BoundingBox.h b/src/BoundingBox.h index c71c42d1a..e62711658 100644 --- a/src/BoundingBox.h +++ b/src/BoundingBox.h @@ -31,9 +31,10 @@ public: For example: cBoundingBox([0, 0, 0], 6, 6, -3) would create a bounding cube from (-3, -3, -3) to (3, 3, 3). */ cBoundingBox(Vector3d a_Pos, double a_Radius, double a_Height, double a_VerticalOffset); cBoundingBox(Vector3d a_Pos, double a_CubeLength); - cBoundingBox(const cBoundingBox & a_Orig); - cBoundingBox & operator=(const cBoundingBox & a_Other); + #ifdef TOLUA_EXPOSITION // tolua isn't aware of implicitly generated copy constructors + cBoundingBox(const cBoundingBox & a_Orig); + #endif /** Moves the entire boundingbox by the specified offset */ void Move(double a_OffX, double a_OffY, double a_OffZ); -- cgit v1.2.3