From 71ce30a8fca3852fcafa398a0bb180f8af5e6fd8 Mon Sep 17 00:00:00 2001 From: Foxar Date: Sun, 20 Dec 2020 14:13:47 +0100 Subject: [PATCH] Added: Destructor for boundingbox class. --- src/engine/models/bounding_box.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/engine/models/bounding_box.cpp b/src/engine/models/bounding_box.cpp index 9191021..ec487b2 100644 --- a/src/engine/models/bounding_box.cpp +++ b/src/engine/models/bounding_box.cpp @@ -13,9 +13,6 @@ BoundingBox::BoundingBox(Vector3 *t_vectorArray) { - if (sizeof(t_vectorArray) / sizeof(Vector3) != 8) - PRINT_ERR("Attempted to create bounding box with invalid count of vectors!"); - //Perform a deep copy of vertex array parameter for (int i = 0; i < 9; i++) _vertices[i] = t_vectorArray[i]; @@ -40,4 +37,8 @@ BoundingBox::BoundingBox(Vector3 *t_vectorArray) //Y-Axis faces _topFace = BoundingBoxFace(_vertices[2], _vertices[7], _vertices[2].y); _bottomFace = BoundingBoxFace(_vertices[0], _vertices[5], _vertices[0].y); +} + +BoundingBox::~BoundingBox() +{ } \ No newline at end of file